FG_init_state {formods}R Documentation

Initialize FG Module State

Description

Creates a list of the initialized module state

Usage

FG_init_state(FM_yaml_file, MOD_yaml_file, id, id_UD, id_DW, 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

Shiny module ID

id_UD

ID string for the upload data module used to handle uploads or the name of the list element in react_state where the data set is stored.

id_DW

ID string for the data wrangling module to process any uploaded data

session

Shiny session variable

Value

list containing an empty app state object

Examples

# These would be the Shiny input and session variables
input   = list()
session = list()

state = FG_init_state(
   FM_yaml_file  = system.file(package = "formods",
                               "templates",
                               "formods.yaml"),
   MOD_yaml_file = system.file(package = "formods",
                               "templates",
                               "FG.yaml"),
   id              = "FG",
   id_UD           = "UD",
   id_DW           = "DW",
   session         = session)

state

[Package formods version 0.1.5 Index]