Print a single table from a tablist
Usage
print_tabtibble(x, ...)
# Default S3 method
print_tabtibble(x, caption = NULL, ..., topic_cols = character(0))Arguments
- x
A table to print
- ...
Passed to the backend's table constructor (
knitr::kable()/tinytable::tt()/gt::gt()/flextable::flextable()), or tox's ownknit_print()method.- caption
The table's caption, or
NULL(the default). Under Quarto, ignored – the crossref wrapper inknit_print.tab_list()applies it instead, so it is not duplicated in the rendered Typst figure. Under R Markdown, applied as the table's own caption (seerender_backend_table());knit_print.tab_list()always supplies it.- topic_cols
Character vector of column names to group into repeating topic headers; only used by the
"typst"backend under Quarto (seerender_backend_table()).
Methods (by class)
print_tabtibble(default): Print a single table from a tablist using the backend selected by thetabtibble.backendoption ("markdown" (default), "tinytable", "gt", "flextable", or "typst"; seerender_backend_table()) whenxis a plain data.frame. Anxthat is already agt,tinytable,flextable, ortable1object (seenew_tab_list()) is printed via its ownknitr::knit_print()method instead, regardless oftabtibble.backend, so a table the caller built with a specific package is rendered exactly as they built it; under R Markdown (seedetect_render_mode()),caption(when supplied) is still shown for it, as a plain bold paragraph before the table, since there is no single API across those packages for adding a caption to an already-built object.