merge_modules: merge_modules

Description Usage Arguments Value Examples

Description

This function has to be set in the Server part of a shiny application. The module merges modules apply_function, apply_scale, show_data & funHistory merge_modulesUI function has to be set in the UI part.

Usage

1
merge_modules(input, output, session, data, name)

Arguments

input, output, session

mandatory arguments for modules to be valid. These should not to be defined as they will be handled by shiny.

data

Numeric vector (not a reactive variable).

name

Variable name (not a reactive variable).

Value

reactiveValues with 2 slots : name : name of the variable. nb_funs : number of functions applied on vector.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# In UI :
merge_modulesUI(id = "id1")
# In Server
data_module1 <- callModule(
  module = merge_modules, 
  id = "id1", 
  data = iris$Sepal.Length, 
  name = "Sepal.Length")

## End(Not run)

ardata-fr/Shiny-Modules-Tutorials documentation built on June 27, 2019, 4:20 p.m.