write_rtf: Write RTF document

Description Usage Arguments Value See Also Examples

View source: R/rtf-code-generators.R

Description

Writes the RTF document to a specified file.

Usage

1

Arguments

doc

The RTF document to be written.

file

A character string naming a file open for writing.

Value

File is written to the file provided by sinking the console output. No output is returned to the R environment.

See Also

http://www.biblioscape.com/rtf15_spec.htm, http://latex2rtf.sourceforge.net/rtfspec_7.html#rtfspec_tabledef

Examples

1
2
3
4
5
6
7
8
## Create and write RTF document
ht <- huxtable::huxtable(
 column1 = 1:5,
 column2 = letters[1:5]
)
rtf <- rtf_doc(ht)

write_rtf(rtf, file=tempfile()) #writes a table with no header/footnotes to 'test.rtf'

pharmaRTF documentation built on Sept. 28, 2021, 5:08 p.m.