Experimental export to rich text format (RTF) via the r2rtf package.
Usage
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),
round_type = round_type,
...
)Arguments
- mpf
(
MatrixPrintForm)
aMatrixPrintFormobject.- colwidths
(
numeric)
column widths.- page_type
(
string)
name of a page type. Seepage_types. Ignored whenpg_widthandpg_heightare set directly.- pg_width
(
numeric(1))
page width in inches.- pg_height
(
numeric(1))
page height in inches.- landscape
(
flag)
whether the dimensions ofpage_typeshould be inverted for landscape orientation. Defaults toFALSE, ignored whenpg_widthandpg_heightare set directly.- margins
(
numeric(4))
named numeric vector containing"bottom","left","top", and"right"margins in inches. Defaults to.5inches for both vertical margins and.75for both horizontal margins.- font_family
(
string)
name of a font family. An error will be thrown if the family named is not monospaced. Defaults to"Courier".- font_size
(
numeric(1))
font size. Defaults to12.- lineheight
(
numeric(1))
line height. Defaults to1.- fontspec
(
font_spec)
a font_spec object specifying the font information to use for calculating string widths and heights, as returned byfont_spec().- round_type
(
"iec"or"sas")
the type of rounding to perform. iec, the default, peforms rounding compliant with IEC 60559 (see details), while sas performs nearest-value rounding consistent with rounding within SAS.- ...
additional parameters passed to individual methods.