Description Usage Arguments Details Value Functions Examples
A shiny module for cs_analysis.
1 2 3 4 5 | cs_analysis_ui(id, debug = FALSE)
cs_analysis_server(id, tsbl_vars, debug = FALSE)
cs_analysis_app(use_online_data = FALSE, debug = on_debug())
|
id |
An ID string of module to connecting UI function and Server function. |
debug |
A logic to enable debug or not, default is on_debug() which returns DEBUG environment variable. |
tsbl_vars |
A tsibble of vars for cross-sectional analysis. |
use_online_data |
A logical to determine whether to use test data from database or not. Default FALSE means to use achieved data for tests. |
The module is an UI for user to analyze variables in cross-section.
UI function doesn't return value.
Server function doesn't return value.
cs_analysis_ui
: UI function of cs_analysis.
cs_analysis_server
: Server function of cs_analysis.
cs_analysis_app
: Testing App of cs_analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# Set up control UI in app UI
ui <- fluidPage(
cs_analysis_ui("cs_analysis_module")
)
# Call control server in App server
server <- function(input, output, session) {
cs_analysis <- cs_analysis_server(
"cs_analysis_module",
tsbl_vars = reactive(tsbl_vars)
)
}
# Run testing App for integration testing
cs_analysis_app()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.