Learn R Programming

rUM (version 2.2.0)

show_slides: Preview slide deck from a package

Description

Render a Quarto slide deck from the supplied package in the Viewer or browser. For more information look in the Creating Slides with write_slides() vignette.

Usage

show_slides(package = NULL, deck = NULL, ...)

Arguments

package

Character. Provide the package containing one or more slide decks.

deck

Character. The name of the slide deck to render without ".qmd".

...

Optional arguments passed to quarto::quarto_preview().

Examples

Run this code
if (interactive()) {
  # Preview a known slide deck name from a package:
  show_slides(package = "rUM", deck = "rUM_the_package")

  # Use find_slides to pipe the output:
  find_slides(package = "rUM") |> show_slides()
}

Run the code above in your browser using DataLab