Number of lines required to print a value

nlines(x, colwidths)

# S4 method for list
nlines(x, colwidths)

# S4 method for `NULL`
nlines(x, colwidths)

# S4 method for character
nlines(x, colwidths)

Arguments

x

ANY. The object to be printed

colwidths

numeric. Column widths (if necessary)

Value

A scalar numeric indicating the number of lines needed to render the object x.