The demo presents available filters and toolbox features.
Arguments
- steps
Set to TRUE (default) if multiple steps should be available.
- stats
Choose which statistics should be displayed for data (and some filters). Possible options are: "pre" - previous step stat, "post" - current step stats, `c("pre", "post")` - for both and NULL for no stats.
- run_button
Should Run button be displayed? If so, the current step computations are run only when clicked. Three options are available "none" - no button, "local" - button displayed at each step panel, "global" - button visible in top filtering panel.
- feedback
Set to TRUE (default) if feedback plots should be displayed at each filter.
- state
Set to TRUE (default) to enable get/set state panel.
- bootstrap
Boostrap version to be used for filtering panel. See bs_theme version argument.
- enable_bookmarking
Set to TRUE (default) if panel should be compatible with native shiny bookmarking.
- code
Set to TRUE (default) to enable reproducible code panel.
- attrition
Set to TRUE (default) to enable attrition plot panel.
- show_help
Set to TRUE (default) to enable help buttons.
- new_step
Choose which add step method should be used for creating new step. Possible options are: "clone" - copy filters from last step, "configure" - opening modal and allow to chose filters from available filters.
- ...
Extra parameters passed to selected cohort methods. Currently unused.
- run_app
If 'TRUE' the application will run using runApp, otherwise shinyApp object is returned.
Value
In case of `run_app=TRUE` no return value, used for side effect which is running a Shiny application. Otherwise shinyApp object.
Examples
if (interactive()) {
library(shinyCohortBuilder)
demo_app(steps = FALSE)
}
if (interactive()) {
library(shinyCohortBuilder)
demo_app(run_button = "local", state = FALSE)
}