getDictionary | R Documentation |
Scans the input file for strings enclosed by flag wings: « », then creates an empty dictionary with corresponding replacement values for each flag.
getDictionary(filename)
filename |
The file path to the document template. Supports .doc and .docx |
A data frame where each row represents a flag in the template document and its replacement value
# Path to the sample template file included in the package
template_path <- system.file("template_document", "Template.docx", package="docket")
# Create a dictionary by using the getDictionary function on the sample template file
result <- getDictionary(template_path)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.