- tt
(TableTree
or related class)
a TableTree
object representing a populated table.
- file
(string
)
string that indicates the final file output. Must have .docx
extension.
- doc_metadata
(list
of string
s)
any value that can be used as metadata by
?officer::set_doc_properties
. Important text values are title
, subject
, creator
, and description
,
while created
is a date object.
- titles_as_header
(flag
)
defaults to TRUE
for tt_to_flextable()
, so the table is self-contained
as it makes additional header rows for formatters::main_title()
string and formatters::subtitles()
character
vector (one per element). FALSE
is suggested for export_as_docx()
. This adds titles and subtitles as a text
paragraph above the table. The same style is applied.
- footers_as_text
(flag
)
defaults to FALSE
for tt_to_flextable()
, so the table is self-contained with
the flextable
definition of footnotes. TRUE
is used for export_as_docx()
to add the footers as a new
paragraph after the table. The same style is applied, but with a smaller font.
- template_file
(string
)
template file that officer
will use as a starting point for the final
document. Document attaches the table and uses the defaults defined in the template file.
- section_properties
(officer::prop_section
)
an officer::prop_section()
object which sets margins and
page size. Defaults to section_properties_default()
.
- ...
(any
)
additional arguments passed to tt_to_flextable()
.
- page_size
(character(1)
) page size. Can be "letter"
or "A4"
. Defaults to "letter"
.
- orientation
(character(1)
) page orientation. Can be "portrait"
or "landscape"
. Defaults to
"portrait"
.