view_layout {onbrand} | R Documentation |
Generate Annotated Layout for Report Templates
Description
Produces a report with each layout element labeled.
Usage
view_layout(
template = file.path(system.file(package = "onbrand"), "templates", "report.pptx"),
output_file = NULL,
verbose = TRUE
)
Arguments
template |
Name of PowerPoint or Word file to annotate (defaults to included PoerPoint template) |
output_file |
name of file to place the annotated layout information, set to |
verbose |
Boolean variable when set to TRUE (default) messages will be |
Details
Generates an Annotated report based on the template provided. Elements of slide masters are identified by placeholder labels. As PowerPoint masters are created the labels can be difficult to predict. Word documents are identified by style names. This function will create a layout file identifying all of the elements of each slide master for a PowerPoint template or each paragraph and table style for a Word template.
Value
List with the following elements
isgood: Boolean variable indicating success or failure
rpt: Officer with the annotated layout
msgs: Vector of messages
Examples
lpptx = view_layout(
template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
output_file = file.path(tempdir(), "layout.pptx"))
ldocx = view_layout(
template = file.path(system.file(package="onbrand"), "templates", "report.docx"),
output_file = file.path(tempdir(), "layout.docx"))