template_details {onbrand} | R Documentation |
Show Template Details for 'onbrand' Object
Description
Takes an onbrand object with a loaded template and displays relevant details about the template.
Usage
template_details(obnd, verbose = TRUE)
Arguments
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 results object. |
Details
Provides relevant details about an onbrand object. For PowerPoint this contains the template names and elements present for that template. For Word it will contain defined text and table styles. This information can be displayed in the console, returned as text or formatted for use in RMarkdown documentation.
Value
list with the following elements:
rpttype: Type of report (either PowerPoint or Word)
msgs: Vector of messages with details or any errors that were encountered
txt: Vector of template details in text format
df: Vector of template details in a dataframe
ft: Vector of template details in flextable format
isgood: Boolean variable indicating the current state of the object
Examples
obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
details = template_details(obnd)
obnd = read_template(
template = file.path(system.file(package="onbrand"), "templates", "report.docx"),
mapping = file.path(system.file(package="onbrand"), "templates", "report.yaml"))
details = template_details(obnd)