Use this function to wrap stable or stable_long objects so they can be
included inline in an Rmarkdown document. Typically, call st_asis() (see
examples).
st_wrap(x, ...)
# Default S3 method
st_wrap(
x,
con = stdout(),
table = TRUE,
center = TRUE,
landscape = is_lscape(x),
caption = NULL,
short = NULL,
float = c("H", "!ht"),
context = c("rmd", "tex"),
asis = FALSE,
...
)
# S3 method for class 'stable_long'
st_wrap(x, table = FALSE, ...)
# S3 method for class 'pmtable'
st_wrap(x, ...)
pt_wrap(x, ...)
st_asis(
x,
...,
caption = cap_main(x),
short = cap_short(x),
asis = TRUE,
con = NULL
)
st_latex(x, con = stdout(), center = TRUE, context = c("rmd", "tex"))an object that inherits from stable
not used
where to write the output
if TRUE, the code is wrapped in latex table environment
if TRUE, center the table
if TRUE render the table in landscape mode
the long table description
the short table description
the float specifier to if a table environment is used; change
this to !ht if the float package cannot be loaded for some reason
if rmd, then the code is enclosed in a pandoc latex fenced
code block; if tex, then the fencing is omitted
if TRUE, the wrapped table is processed with
knitr::asis_output() and returned