save_report {onbrand}R Documentation

Save Onbrand Report to a File

Description

Saves report in onbrand object to the specified file.

Usage

save_report(obnd, output_file = NULL, verbose = TRUE)

Arguments

obnd

onbrand report object

output_file

File name to save the report.

verbose

Boolean variable when set to TRUE (default) messages will be displayed on the terminal; Messages will be included in the returned onbrand object.

Value

List with the following elements

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"))

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"))


[Package onbrand version 1.0.5 Index]