Number of lines required to print a value
nlines(x, colwidths = NULL, max_width = NULL, fontspec, col_gap = NULL)# S4 method for list
nlines(x, colwidths = NULL, max_width = NULL, fontspec, col_gap = NULL)
# S4 method for NULL
nlines(x, colwidths = NULL, max_width = NULL, fontspec, col_gap = NULL)
# S4 method for character
nlines(x, colwidths = NULL, max_width = NULL, fontspec, col_gap = NULL)
The number of lines needed to render the object x
.
(ANY
)
the object to be printed.
(numeric
)
column widths (if necessary). Principally used in rtables
'
method.
(numeric(1)
)
width that strings should be wrapped to when
determining how many lines they require.
(font_spec
)
a font_spec object specifying the font information to use for
calculating string widths and heights, as returned by font_spec()
.
(numeric(1)
)
width of gap between columns in number of spaces.
Only used by methods which must calculate span widths after wrapping.