runExample: Run rpredictit examples

Description Usage Arguments Value Examples

View source: R/runExample.R

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

1

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

1
2
3
4
5
6
7
## Only run this example in interactive R sessions
if (interactive()) {
  # List all available example apps
  runExample()

  runExample("demo")
}

Example output

Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 

rpredictit documentation built on March 26, 2020, 8:26 p.m.