# Within shiny a session variable will exist,
# this creates examples here for testing purposes:
sess_res = UD_test_mksession()
session = sess_res$session
state = FM_init_state(
FM_yaml_file = system.file(package = "formods",
"templates",
"formods.yaml"),
MOD_yaml_file = system.file(package = "formods",
"templates",
"UD.yaml"),
id = "UD",
MT = "UD",
button_counters = NULL,
ui_ids = NULL,
ui_hold = NULL,
session = session)
state
Run the code above in your browser using DataLab