MatrixPrintForm
to RTFExperimental export to rich text format (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_family = "Courier",
font_size = 8,
lineheight = 1,
fontspec = font_spec(font_family, font_size, lineheight),
...
)
An RTF object.
(MatrixPrintForm
)
a MatrixPrintForm
object.
(numeric
)
column widths.
(string
)
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.
(flag
)
whether the dimensions of page_type
should be
inverted for landscape orientation. 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.
(string
)
name of a font family. An error will be thrown
if the family named is not monospaced. Defaults to "Courier"
.
(numeric(1)
)
font size. Defaults to 12
.
(numeric(1)
)
line height. Defaults to 1
.
(font_spec
)
a font_spec object specifying the font information to use for
calculating string widths and heights, as returned by font_spec()
.
additional parameters 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.