Launch a rpredictit example Shiny app that shows how to easily use rpredictit in an app.

Run without any arguments to see a list of available example apps.

runExample(example)

Arguments

example

The app to launch

Value

None. Runs a demo Shiny application. This function normally does not return; interrupt R to stop the application.

Examples

## Only run this example in interactive R sessions
if (interactive()) {
  # List all available example apps
  runExample()

  runExample("demo")
}