Learn R Programming

onbrand (version 1.0.6)

fetch_officer_object: Extracts Officer Object From Onbrand Report Object

Description

If you need modify the onbrand report object directly with officer functions you can use this function to extract the report object from the onbrand object.

Usage

fetch_officer_object(obnd, verbose = TRUE)

Value

List with the following elements

  • isgood: Boolean variable indicating success or failure

  • rpt: Officer object

  • msgs: Vector of messages

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 onbrand object.

See Also

set_officer_object

Examples

Run this code

obnd = read_template(
      template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
      mapping  = file.path(system.file(package="onbrand"), "templates", "report.yaml"))

rpt = fetch_officer_object(obnd)$rpt

Run the code above in your browser using DataLab