View source: R/create_slides.R
new_slide | R Documentation |
Add a new slide to a presentation
new_slide(
presentation_id,
layout,
centered_title = NULL,
subtitle = NULL,
title = NULL,
body = NULL
)
presentation_id |
The presentation id |
layout |
The layout to use for the slide. See get_layouts. |
centered_title |
Character vector to be inserted into the "centered_title" placeholders in
order as for |
subtitle |
Character vector to be inserted into the subtitle placeholders in order as for
|
title |
Character vector to be inserted into the title placeholders in order. Any |
body |
Character vector to be inserted into the body placeholders in order as for |
The URL of the new slide. This function is mostly used for its side effect of adding a slide to the presentation.
s <- create_slides()
layout <- get_layouts(s)
layout_p9 <- layout$layout_objectId[20]
new_slide(s, layout_p9, title = "Slide Title", subtitle = "A Subtitle", body = "Body Text")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.