View source: R/mpf_exporters.R
export_as_rtf | R Documentation |
Experimental export to the rich text format (RTF) format.
export_as_rtf(
x,
file = NULL,
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(bottom = 0.5, left = 0.75, top = 0.5, right = 0.75),
font_family = "Courier",
font_size = 8,
lineheight = 1,
fontspec = font_spec(font_family, font_size, lineheight),
...
)
x |
( |
file |
( |
colwidths |
( |
page_type |
( |
pg_width |
( |
pg_height |
( |
landscape |
( |
margins |
( |
font_family |
( |
font_size |
( |
lineheight |
( |
fontspec |
( |
... |
additional parameters passed to |
RTF export occurs via the following steps:
The table is paginated to the specified page size (vertically and horizontally).
Each separate page is converted to a MatrixPrintForm
object and then to
RTF-encoded text.
Separate RTF text chunks are combined and written to a single RTF file.
Conversion of MatrixPrintForm
objects to RTF is done via mpf_to_rtf()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.