View source: R/pptx_slide_manip.R
add_slide | R Documentation |
Add a slide into a pptx presentation.
add_slide(
x,
layout = "Title and Content",
master = "Office Theme",
...,
.dots = NULL
)
x |
an |
layout |
slide layout name to use. |
master |
master layout name where |
... |
Key-value pairs of the form |
.dots |
List of key-value pairs of the form |
print.rpptx()
, read_pptx()
, layout_summary()
, plot_layout_properties()
, ph_with()
, phs_with()
Other functions to manipulate slides:
move_slide()
,
on_slide()
,
remove_slide()
,
set_notes()
x <- read_pptx()
layout_summary(x)
x <- add_slide(x, layout = "Two Content", master = "Office Theme")
# use `...` to fill placeholders in same step
x <- read_pptx()
x <- add_slide(x,
layout = "Two Content", `Title 1` = "A title",
dt = "Jan. 26, 2025", `body[2]` = "Body 2",
left = "Left side", `6` = "Footer"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.