CTS_init_state {ruminate} | R Documentation |
Initialize CTS Module State
Description
Creates a list of the initialized module state
Usage
CTS_init_state(FM_yaml_file, MOD_yaml_file, id, id_MB, session)
Arguments
FM_yaml_file |
App configuration file with FM as main section |
MOD_yaml_file |
Module configuration file with MC as main section |
id |
ID string for the module |
id_MB |
An ID string that corresponds with the ID used to call the MB modules |
session |
Shiny session variable |
Value
list containing an empty CTS state
Examples
# Within shiny both session and input variables will exist,
# this creates examples here for testing purposes:
sess_res = MB_test_mksession()
session = sess_res$session
input = sess_res$input
state = CTS_init_state(
FM_yaml_file = system.file(package = "formods",
"templates",
"formods.yaml"),
MOD_yaml_file = system.file(package = "ruminate",
"templates",
"CTS.yaml"),
id = "CTS",
id_MB = "MB",
session = session)
state
[Package ruminate version 0.3.1 Index]