Learn R Programming

formods (version 0.2.1)

FM_set_mod_state: Set the Module State

Description

Sets the module state from the userdata under the specified id

Usage

FM_set_mod_state(session, id, state)

Value

Session variable with the module state set.

Arguments

session

Shiny session variable

id

ID string for the module.

state

Module state to set.

Examples

Run this code
# We need a Shiny session variable and a module state
# object to use this function:
sess_res = UD_test_mksession()
session = sess_res$session
state   = sess_res$state
FM_set_mod_state(session, "UD", state)

Run the code above in your browser using DataLab