Skip to contents

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.

Usage

deck_update_slide(
  presentation,
  id,
  layout = NULL,
  notes = NULL,
  elements = NULL
)

Arguments

presentation

Path to presentation.yaml.

id

The slide's id.

layout

New layout name, NA to clear it (freeform), or NULL (default) to leave it unchanged.

notes

New speaker notes text, NA to remove any notes, or NULL (default) to leave them unchanged.

elements

A list to replace the slide's elements block with (same JSON encoding as deck_add_slide()'s elements), or NULL (default) to leave it unchanged.

Value

The CLI result (invisibly).

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.")
} # }