View source: R/pptx_layout_helper.R
layout_default | R Documentation |
Set or remove the default layout used when calling add_slide()
.
layout_default(x, layout = NULL, master = NULL, as_list = FALSE)
x |
An |
layout |
Layout name. If |
master |
Name of master. Only required if layout name is not unique across masters. |
as_list |
If |
The rpptx
object.
add_slide()
# set and remove the default layout
x <- read_pptx()
layout_default(x) # no defaults
x <- layout_default(x, "Title and Content") # set default
layout_default(x)
x <- add_slide(x) # new slide with default layout
x <- layout_default(x, NULL) # remove default
layout_default(x) # no defaults
# use when repeatedly adding slides with same layout
x <- read_pptx()
x <- layout_default(x, "Title and Content")
x <- add_slide(x, title = "1. Slide", body = "Some content")
x <- add_slide(x, title = "2. Slide", body = "Some more content")
x <- add_slide(x, title = "3. Slide", body = "Even more content")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.