Export a SimtablR table to a Word (.docx) file
Arguments
- x
A SimtablR object with an
as_flextable()method (e.g. fromtable1()ortb()).- path
Output file path. A missing
.docxsuffix is added; any other suffix is rejected.- footnotes
Optional character vector passed to table renderers that support footnotes.
- methods
Logical; when
TRUE, append recordedas_methods()prose after the exported table(s).- overwrite
Logical. Existing files are protected by default; pass
TRUEto replace the destination explicitly.- ...
Passed to
flextable::save_as_docx()(e.g. page properties).
Details
Exports are written to a temporary file in the destination
directory and published only after the backend succeeds. Existing files
are never changed unless overwrite = TRUE.