fph | R Documentation |
Retrieves the placeholder name in PowerPoint for a specified layout element.
fph(obnd, template = NULL, pn = NULL, verbose = TRUE)
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. |
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
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.