officer (version 0.1.6)

set_doc_properties: set document properties

Description

set Word or PowerPoint document properties. These are not visible in the document but are available as metadata of the document.

Usage

set_doc_properties(x, title = NULL, subject = NULL, creator = NULL,
  description = NULL, created = NULL)

Arguments

x

a rdocx or rpptx object

title, subject, creator, description

text fields

created

a date object

Examples

Run this code
# NOT RUN {
library(magrittr)
read_docx() %>% set_doc_properties(title = "title",
  subject = "document subject", creator = "Me me me",
  description = "this document is empty",
  created = Sys.time()) %>% doc_properties()
# }

Run the code above in your browser using DataCamp Workspace