# Configuration files
FM_yaml_file = system.file(package = "formods", "templates", "formods.yaml")
MOD_yaml_file = system.file(package = "formods", "templates", "FG.yaml")
# We need to specify both the FG module id as well as the
# id of the UD module that feeds into it.
id = "FG"
id_UD = "UD"
id_DW = "DW"
# These would be the Shiny input and session variables
input = list()
session = list()
# Creating an empty state object
state = FG_fetch_state(id = id,
input = input,
session = session,
FM_yaml_file = FM_yaml_file,
MOD_yaml_file = MOD_yaml_file,
id_UD = id_UD,
id_DW = id_DW,
react_state = NULL)
state
Run the code above in your browser using DataLab