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. IfFALSE
and 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_properties
title,subject,creator,description
text fields
created
a date object
values
a named list (names are field names), each element is a single character value specifying value associated with the corresponding field name. If
values
is provided, argument...
will be ignored.