Make a `R2PptxSlide` object representing a PowerPoint slide.

new_slide(layout, elements = list(), notes = NULL)

Arguments

layout

character. Name of the PowerPoint layout to use for this slide.

elements

list. List of `R2PptxElements` to initialize the slide with. Defaults to empty list.

notes

character. Optional speaker notes for the slide. A single string; `NULL` (the default) leaves the slide's notes empty. Speaker notes round-trip through Google Drive's pptx → Slides conversion, so notes set here will appear in the Google Slides notes panel after upload.

Value

An object of class R2PptxSlide representing a future PowerPoint slide.