nlines {formatters}R Documentation

Number of lines required to print a value

Description

Number of lines required to print a value

Usage

nlines(x, colwidths = NULL, max_width = NULL)

## S4 method for signature 'list'
nlines(x, colwidths = NULL, max_width = NULL)

## S4 method for signature 'NULL'
nlines(x, colwidths = NULL, max_width = NULL)

## S4 method for signature 'character'
nlines(x, colwidths = NULL, max_width = NULL)

Arguments

x

(ANY)
the object to be printed.

colwidths

(numeric)
column widths (if necessary).

max_width

(numeric(1))
width that strings should be wrapped to when determining how many lines they require.

Value

The number of lines needed to render the object x.


[Package formatters version 0.5.6 Index]