| MB_init_state | R Documentation |
Creates a list of the initialized module state
MB_init_state(FM_yaml_file, MOD_yaml_file, id, session)
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 |
list containing an empty MB state
# 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 = MB_init_state(
FM_yaml_file = system.file(package = "formods",
"templates",
"formods.yaml"),
MOD_yaml_file = system.file(package = "ruminate",
"templates",
"MB.yaml"),
id = "MB",
session = session)
state
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.