runExample: Run rpredictit examples

View source: R/runExample.R

runExampleR Documentation

Run rpredictit examples

Description

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.

Usage

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

rpredictit documentation built on July 19, 2022, 5:06 p.m.