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

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

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.

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

Examples

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