| cb_export | R Documentation |
Supports multiple formats based on file extension:
.html - rendered gt table (presentation)
.csv - raw tibble (programmatic reuse)
.docx - editable Word table (paper supplements, presentations)
.xlsx - editable spreadsheet with filters
cb_export(path, variables = NULL, ...)
path |
File path. Extension determines format. There is no default:
the destination must be supplied explicitly (e.g. a file under
|
variables |
Optional character vector. If provided, exports only these variables (in the given order). Default: all. |
... |
Additional arguments passed to cb_render() for HTML (e.g. show_code). |
For .docx and .xlsx, you can pass variables = c(...) to export only
a subset (useful for paper supplements / presentations).
Invisible path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.