fetch_rpttype {onbrand} | R Documentation |
Determines Type of Report Template
Description
Based on the file extension for a template
Usage
fetch_rpttype(template = NULL, verbose = TRUE)
Arguments
template |
Name of PowerPoint or Word file |
verbose |
Boolean variable when set to TRUE (default) messages will be displayed on the terminal; Messages will be included in the returned list. |
Value
List with the following elements
rpttype: Either Word, PowerPoint or Unknown
rptext: Either docx, pptx, or Unknown
rptobj: Either rdocx, rpptx, or Unknown
isgood: Boolean variable indicating success or failure
msgs: Vector of messages
Examples
rpttype = fetch_rpttype(template=
file.path(system.file(package="onbrand"), "templates", "report.pptx"))
[Package onbrand version 1.0.5 Index]