update_docx_title | R Documentation |
This function exports the document as a temporary .docx file, creates a temporary .vbs file to update the document's title property and save, runs the .vbs file in command prompt, overrides x using the 'read_docx()' function of the 'officer' package, deletes the temporary files, and returns the updated .docx file.
update_docx_title(x, title = NULL)
x |
document created using 'read_docx()' function from 'officer' package |
title |
string the document's title property is to be set to |
doc <- read_docx()
doc <- update_docx_title(doc, "Example title")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.