ts_analysis: ts_analysis

Description Usage Arguments Details Value Functions Examples

Description

A shiny module for ts_analysis.

Usage

1
2
3
4
5
ts_analysis_ui(id)

ts_analysis_server(id, tsbl_vars, debug = FALSE)

ts_analysis_app(use_online_data = FALSE, debug = on_debug())

Arguments

id

An ID string of module to connecting UI function and Server function.

tsbl_vars

A tsibble of vars for time-series analysis.

debug

A logic to enable debug or not, default is on_debug() which returns DEBUG environment variable.

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.

Details

The module is an UI for user to analyze variables in time series.

Value

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# Set up control UI in app UI
ui <- fluidPage(
  ts_analysis_ui("ts_analysis_module")
)

# Call control server in App server
server <- function(input, output, session) {
  ts_analysis <- ts_analysis_server("ts_analysis_module",
    tsbl_vars = reactive(tsbl_vars)
  )
}

# Run testing App for integration testing
ts_analysis_app()

## End(Not run)

chriszheng2016/zstexplorer documentation built on June 13, 2021, 9:47 a.m.