Generate Report Previewing the Locations From Mapping File
Source:R/preview_template.R
preview_template.Rd
Takes an onbrand object with a loaded template and populates the template with the elements from the mapping file.
Examples
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)