Skip to contents

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

Examples

# write a rdocx object in a rtf file ----
doc <- rtf_doc()
print(doc, target = tempfile(fileext = ".rtf"))
#> [1] "/tmp/Rtmpd09DL3/file2d673b60b92a.rtf"