Skip to contents

Starts an example app that ships with the package. The "icecream" example is the web page of an ice cream shop with a flavor survey in a side panel. It uses ellmer::chat_claude(), so it needs ANTHROPIC_API_KEY, and it stores the answers with RSQLite.

Usage

run_example(name = "icecream", ...)

Arguments

name

The name of the example. Call run_example(NULL) to list the names.

...

Other arguments for shiny::runApp().

Value

The names of the examples if name is NULL. Otherwise, no value; the app runs until you stop it.

Examples

run_example(NULL)
#> [1] "icecream"
if (FALSE) { # interactive()
run_example("icecream")
}