Experimental export to RTF via the r2rtf
package
mpf_to_rtf(
mpf,
colwidths = NULL,
page_type = "letter",
pg_width = page_dim(page_type)[if (landscape) 2 else 1],
pg_height = page_dim(page_type)[if (landscape) 1 else 2],
landscape = FALSE,
margins = c(4, 4, 4, 4),
font_size = 8,
...
)
An rtf object
MatrixPrintForm. MatrixPrintForm object.
character(1). Column widths.
character(1). Name of a page type. See
page_types
. Ignored when pg_width
and pg_height
are set directly.
numeric(1). Page width in inches.
numeric(1). Page height in inches.
logical(1). Should the dimensions of page_type
be inverted for landscape? Defaults to FALSE
, ignored when
pg_width
and pg_height
are set directly.
numeric(4). Named numeric vector containing 'bottom'
,
'left'
, 'top'
, and 'right'
margins in inches. Defaults
to .5
inches for both vertical margins and .75
for both
horizontal margins.
numeric(1). Font size, defaults to 12.
Passed to individual methods.
This function provides a low-level coercion of a
MatrixPrintForm object into text containing the corresponding table in
RTF`. Currently, no pagination is done at this level,
and should be done prior to calling this function, though that
may change in the future.