save_as_docx() writes one or more flextable objects to a Word file. This is a convenience function that wraps the officer package. For more control over document structure, use the officer API directly.
Function signature
Parameters
One or more
flextable objects, optionally named. Named objects use the name as a paragraph title before the table.A list of
flextable objects (optionally named). If supplied, ... is ignored.Path to the
.docx file to create.An
officer::prop_section object defining page layout properties such as orientation, page size, and margins.Horizontal alignment of the table on the page:
"left", "center", or "right".Return value
A string containing the full path of the generated file.Examples
Save a single table:See also
save_as_html()save_as_pptx()save_as_rtf()save_as_image()paginate()— control row pagination in Word