Skip to contents

Write the RTF object and its content to a file.

Usage

# S3 method for class '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/RtmpfGwugV/file29ba62d6ccb7.rtf"