View source: R/preview_template.R
preview_template | R Documentation |
Takes an onbrand object with a loaded template and populates the template with the elements from the mapping file.
preview_template(obnd, verbose = TRUE)
obnd |
onbrand report object |
verbose |
Boolean variable when set to TRUE (default) messages will be displayed on the terminal; Messages will be included in the returned onbrand object. |
onbrand object with template previews added and any messages passed along
obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
obnd = preview_template(obnd)
obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.docx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
obnd = preview_template(obnd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.