Learn R Programming

onbrand (version 1.0.6)

fph: Fetch PowerPoint Placeholder

Description

Retrieves the placeholder name in PowerPoint for a specified layout element.

Usage

fph(obnd, template = NULL, pn = NULL, verbose = TRUE)

Value

List with the following elements

  • ph: Placeholder label or NULL if failure

  • type: Placeholder content type in PowerPoint or NULL if failure

  • isgood: Boolean variable indicating success or failure

  • msgs: Vector of messages

Arguments

obnd

onbrand report object

template

Name of slide template (name from templates in yaml mapping file)

pn

Placehodler name to fetch

verbose

Boolean variable when set to TRUE (default) messages will be displayed on the terminal; Messages will be included in the returned list.

Examples

Run this code
# Creating an onbrand object:
obnd = read_template(
      template = file.path(system.file(package="onbrand"), "templates", "report.pptx"),
      mapping  = file.path(system.file(package="onbrand"), "templates", "report.yaml"))

# Pulling out the placeholder information:
ph = fph(obnd, "two_content_header_text", "content_left_header")


Run the code above in your browser using DataLab