Saves report in onbrand object to the specified file.
Value
List with the following elements
isgood: Boolean variable indicating success or failure
msgs: Vector of messages
Examples
obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
save_report(obnd, tempfile(fileext = ".pptx"))
#> $isgood
#> [1] TRUE
#>
#> $msgs
#> NULL
#>
obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.docx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
save_report(obnd, tempfile(fileext = ".docx"))
#> $isgood
#> [1] TRUE
#>
#> $msgs
#> NULL
#>