Only the arguments you pass are changed; anything else on the slide is
left as-is. layout: null (freeform) and "no notes" are both
meaningful, valid values in their own right (spec section 7.6) – so
NULL can't double as this function's own "leave alone" default the
way it usually would in R. Pass NA instead to explicitly clear
layout/notes; NULL (the default) leaves that field untouched.
Arguments
- presentation
Path to
presentation.yaml.- id
The slide's id.
- layout
New layout name,
NAto clear it (freeform), orNULL(default) to leave it unchanged.- notes
New speaker notes text,
NAto remove any notes, orNULL(default) to leave them unchanged.- elements
A list to replace the slide's
elementsblock with (same JSON encoding asdeck_add_slide()'selements), orNULL(default) to leave it unchanged.
Examples
if (FALSE) { # \dontrun{
# See deck_add_slide()'s example for setting up a scratch project_dir.
presentation <- file.path(project_dir, "presentation.yaml")
deck_update_slide(presentation, id = "new-slide", notes = "Remember to mention Q3.")
} # }
