- tt
TableTree (or related class). A TableTree object representing a
populated table.
- theme
function(1). Defaults to theme_docx_default(tt). It expects a
a theme function that is designed internally as a function of a flextable object
and changes its layout and style. If set to NULL, it will produce a table similar
to rtables default.
- border
officer border object. Defaults to officer::fp_border(width = 0.5).
- indent_size
integer(1). If NULL, the default indent size of the table (see
matrix_form() indent_size) is used. To work with docx, any size is multiplied
by 2 mm (5.67 pt) as default.
- titles_as_header
logical(1). Defaults to TRUE for tt_to_flextable(), so the
table is self-contained as it makes additional header rows for main_title()
string and 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. Same style is applied.
- footers_as_text
logical(1). 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.
Same style is applied, but with a smaller font.
- counts_in_newline
logical(1). Defaults to FALSE. In rtables text printing
(formatters::toString()), the column counts, i.e. (N=xx), is always on a new line.
We noticed that for docx exports could be necessary to have it on the same line.
- paginate
logical(1). If you need .docx export and you use
export_as_docx, we suggest relying on word pagination system. Cooperation
between the two mechanisms is not guaranteed. This option splits tt in different
"pages" as multiple flextables. Defaults to FALSE.
- lpp
numeric. Maximum lines per page including (re)printed header and context rows
- cpp
numeric(1) or NULL. Width (in characters) of the pages for
horizontal pagination. NA (the default) indicates cpp should be inferred from
the page size; NULL indicates no horizontal pagination should be done
regardless of page size.
- ...
Passed on to methods or tabulation functions.
- colwidths
numeric vector. Column widths for use with vertical pagination.
- tf_wrap
logical(1). Should the texts for title, subtitle,
and footnotes be wrapped?
- max_width
integer(1), character(1) or NULL. Width that title
and footer (including footnotes) materials should be
word-wrapped to. If NULL, it is set to the current print width
of the session (getOption("width")). If set to "auto",
the width of the table (plus any table inset) is used. Ignored
completely if tf_wrap is FALSE.
- total_width
numeric(1). Total width in inches for the resulting
flextable(s). Defaults to 10.
- font
character(1). Defaults to "Arial". If the font is not vailable, flextable
default is used.
- font_size
integer(1). Positive integerish value that defaults to 9.
- bold
character vector. It can be any combination of c("header", "content_rows", "label_rows"). The first one renders all column names bold (not topleft content).
Second and third option use make_row_df() to render content or/and label
rows as bold.
- bold_manual
named list. List of indexes lists. See example for needed structure.
Accepted groupings/names are c("header", "body").