UD_init_state {formods} | R Documentation |
Initialize UD Module State
Description
Creates a list of the initialized module state
Usage
UD_init_state(FM_yaml_file, MOD_yaml_file, id, 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. |
session |
Shiny session variable |
Value
list containing an empty UD state
Examples
# Within shiny a session variable will exist,
# this creates one here for testing purposes:
sess_res = UD_test_mksession(session=list())
session = sess_res$session
state = UD_init_state(
FM_yaml_file = system.file(package = "formods",
"templates",
"formods.yaml"),
MOD_yaml_file = system.file(package = "formods",
"templates",
"UD.yaml"),
id = "UD",
session = session)
state
[Package formods version 0.1.6 Index]