Write a rdocx, rpptx, or rxlsx object to a file
Usage
write_officer(x, path, overwrite = TRUE, modified_by = Sys.getenv("USER"), ...)Arguments
- x
A rdocx, rpptx, or rxlsx object to save. Document properties won't be set for rxlsx objects.
- path
File path.
- overwrite
If
TRUE(default), remove file at path if it already exists. IfFALSEand file exists, this function aborts.- modified_by
If the withr package is installed, modified_by overrides the default value for the lastModifiedBy property assigned to the output file by officer. Defaults to
Sys.getenv("USER")(the same value used by officer).- ...
Arguments passed on to
officer::set_doc_propertiestitle,subject,creator,descriptiontext fields
createda date object
valuesa named list (names are field names), each element is a single character value specifying value associated with the corresponding field name. If
valuesis provided, argument...will be ignored.
