LG_shiny_interface_0_create_log: Create the 'TS_logging'-object for the dynamic...

View source: R/LG_shiny_interface_0_create_log.R

LG_shiny_interface_0_create_logR Documentation

Create the TS_logging-object for the dynamic LG_shiny-interface.

Description

This function initiates the TS_logging-object needed for the dynamic structure of the LG_shiny-application to work properly. Moreover, it does also adds a bunch of values to the reactive input-object in the shiny-application started by LG_shiny.

Usage

LG_shiny_interface_0_create_log(.env, .env2)

Arguments

.env

The environment where the original arguments given to LG_shiny lives, i.e. arguments like main_dir and data_dir. The logging-object will be added to this environment.

.env2

The environment containing the two lists input and output.

Value

This function adds the TS_logging-object into the environment .env. This object will log input-values in order to avoid problems when switching between different branches, i.e. it prevents residual input-values to trigger subsetting problems. Moreover, the last selected input-values for an old branch will be stored when there is a switch to a new branch, and these will then be loaded the next time the old branch is visited. The function does also add the initial NA-values to the reactive input-object in the shiny-application started by LG_shiny, and this is done in order for some of the logical tests to become simpler during the initiation phase.


LAJordanger/localgaussSpec documentation built on May 6, 2023, 4:31 a.m.