print.rtf: Write an 'RTF' File

View source: R/rtf.R

print.rtfR Documentation

Write an 'RTF' File

Description

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

rtf_doc()

Examples

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

officer documentation built on Dec. 4, 2025, 9:08 a.m.