
Last chance! 50% off unlimited learning
Sale ends in
Writes the RTF document to a specified file.
write_rtf(doc, file = NULL)
The RTF document to be written.
A character string naming a file open for writing.
File is written to the file provided by sinking the console output. No output is returned to the R environment.
http://www.biblioscape.com/rtf15_spec.htm, http://latex2rtf.sourceforge.net/rtfspec_7.html#rtfspec_tabledef
# NOT RUN {
## 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'
# }
Run the code above in your browser using DataLab