Adds one slide on layout and fills the placeholders named in
placeholders (by label, the ph_label column of
officer::layout_properties()). This backs the custom placeholder type,
so a study can add its own slide without writing R code:
Usage
append_custom_slides(
doc_o,
layout,
master = NULL,
placeholders = list(),
to_page = NA,
doc_original = NULL,
save_file = FALSE
)Arguments
- doc_o
Path to the
.pptxfile.- layout
Name of the layout to use.
- master
Name of the slide master. Only needed when the layout name exists in more than one master.
- placeholders
A named list mapping placeholder labels to text. Each value may be a character vector or a list (one paragraph per element).
- to_page
Page to move the new slide to.
NAappends at the end.- doc_original
An optional existing
officer::rpptxobject. IfNULL, the document is read fromdoc_o.- save_file
A logical. If
TRUE, the deck is written next todoc_o.