Write the RTF object and its content to a file.
# 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
Examples
# write a rdocx object in a rtf file ----
doc <- rtf_doc()
print(doc, target = tempfile(fileext = ".rtf"))
#> [1] "/tmp/RtmpUZCN2l/file356717cbfac13.rtf"