View source: R/ppt_ph_dedupe_layout.R
layout_dedupe_ph_labels | R Documentation |
PowerPoint does not enforce unique placeholder labels in a layout. Selecting a placeholder via its label using ph_location_label will throw an error, if the label is not unique. layout_dedupe_ph_labels helps to detect, rename, or delete duplicate placholder labels.
layout_dedupe_ph_labels(x, action = "detect", print_info = FALSE)
x |
An |
action |
Action to perform on duplicate placeholder labels. One of:
|
print_info |
Print action information (e.g. renamed placeholders) to console?
Default is |
A rpptx
object (with modified placeholder labels).
x <- read_pptx()
layout_dedupe_ph_labels(x)
file <- system.file("doc_examples", "ph_dupes.pptx", package = "officer")
x <- read_pptx(file)
layout_dedupe_ph_labels(x)
layout_dedupe_ph_labels(x, "rename", print_info = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.