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

View source: R/rtf.R

print.rtfR Documentation

Write an 'RTF' document to a 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 Oct. 10, 2024, 1:06 a.m.