fetch_rpttype: Determines Type of Report Template

View source: R/fetch_rpttype.R

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


onbrand documentation built on May 29, 2024, 11:17 a.m.