produce a flextable from a TableTree or
ElementaryTable object produced with the
'rtables' package.
The conversion uses formatters::matrix_form() to extract the
formatted content, column spans, alignments, indentation
and footnotes, then maps them to flextable features.
Indentation of row labels is rendered with left padding.
Label rows (LabelRow) are displayed in bold in the first column.
Content rows (ContentRow) are displayed entirely in bold.
When LabelRow groups exist, paginate() is applied so
that all rows belonging to the same group are kept together
on the same page in Word and RTF output.
To paginate the resulting flextable into multiple pages, use
split_to_pages(), split_rows(), or split_columns() after
calling as_flextable().
# S3 method for TableTree
as_flextable(x, indent_padding = 4, ...)# S3 method for ElementaryTable
as_flextable(x, indent_padding = 4, ...)
a flextable object.
a TableTree or ElementaryTable object produced
by the 'rtables' package.
base left padding in points per indentation
level. Default is 4.
unused arguments
split_to_pages(), split_rows(), split_columns()