Writes the RTF document to a specified file.
write_rtf(doc, file = NULL)
The RTF document to be written.
A character string naming a file open for writing.
File is written to the file provided by sinking the console output. No output is returned to the R environment.