Learn R Programming

officer (version 0.6.8)

print.rtf: Write an 'RTF' document to a file

Description

Write the RTF object and its content to a file.

Usage

# S3 method for rtf
print(x, target = NULL, ...)

Arguments

x

an 'rtf' object created with rtf_doc()

target

path to the RTF file to write

...

unused

See Also

rtf_doc()

Examples

Run this code
# write a rdocx object in a rtf file ----
doc <- rtf_doc()
print(doc, target = tempfile(fileext = ".rtf"))

Run the code above in your browser using DataLab