Make pagination data frame for a listing
# S4 method for listing_df
make_row_df(
tt,
colwidths = NULL,
visible_only = TRUE,
rownum = 0,
indent = 0L,
path = character(),
incontent = FALSE,
repr_ext = 0L,
repr_inds = integer(),
sibpos = NA_integer_,
nsibs = NA_integer_,
fontspec = dflt_courier,
round_type = c("iec", "sas")
)
a data.frame
with pagination information.
(listing_df
)
the listing to be rendered.
(numeric
)
internal detail, do not set manually.
(flag
)
ignored, as listings do not have
non-visible structural elements.
(numeric(1)
)
internal detail, do not set manually.
(integer(1)
)
internal detail, do not set manually.
(character
)
path to the (sub)table represented by tt
. Defaults to character()
.
(flag
)
internal detail, do not set manually.
(integer(1)
)
internal detail, do not set manually.
(integer
)
internal detail, do not set manually.
(integer(1)
)
internal detail, do not set manually.
(integer(1)
)
internal detail, do not set manually.
(font_spec
)
a font_spec object specifying the font information to use for
calculating string widths and heights, as returned by font_spec()
.
("iec"
or "sas"
)
the type of rounding to perform. iec,
the default, peforms rounding compliant with IEC 60559 (see details), while
sas performs nearest-value rounding consistent with rounding within SAS.
formatters::make_row_df()
lsting <- as_listing(mtcars)
mf <- matrix_form(lsting)
Run the code above in your browser using DataLab