run_example: Run a perspectiveR Example App

View source: R/utils.R

run_exampleR Documentation

Run a perspectiveR Example App

Description

Launches a bundled Shiny example app demonstrating the perspectiveR widget.

Usage

run_example(example = NULL, ...)

Arguments

example

Name of the example to run. Use NULL (default) to list available examples.

...

Additional arguments passed to runApp.

Value

If example is NULL, a character vector of available example names (invisibly). Otherwise, no return value; called for the side effect of launching a Shiny app.

Examples

# List available examples
run_example()

# Launch the demo app
if (interactive()) {
run_example("shiny-basic")
}


perspectiveR documentation built on March 30, 2026, 9:06 a.m.