callApp: Run example app or open example app code

Description Usage Arguments Value Examples

View source: R/call_app.R

Description

Run the specified example app locally in the browser or open the code file to see the whole app code.

Usage

1
callApp(appName, action = "run")

Arguments

appName

string. The name of the example app. Must be one of "Bandit", "BART", "CheckId", "DD", "DfD", "DfE", "Survey" or "TagsInput".

action

string. Valid inputs are "run" or "show". Whether the app should be run or the code shown. The default action is to run the app.

Value

Run a shiny app or show its code.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# run the survey app example
callApp("Survey", "run")

# show code of the survey app example
callApp("Survey", "show")

## End(Not run)

ndphillips/ShinyPsych documentation built on Feb. 14, 2022, 5:53 p.m.