DW_attach_ds: Attach Data Set to DW State

View source: R/DW_Server.R

DW_attach_dsR Documentation

Attach Data Set to DW State

Description

Attaches a dataset to the DW state supplied.

Usage

DW_attach_ds(state, id_UD, session)

Arguments

state

DW state from DW_fetch_state()

id_UD

ID string for the upload data module used to handle uploads

session

Shiny session variable

Value

state with data set attached

Examples

# Within shiny both session and input variables will exist,
# this creates examples here for testing purposes:
sess_res = DW_test_mksession()
session = sess_res$session
input   = sess_res$input

# We also need a state variable
state = sess_res$state

# We need to identify the UD module with the data
id_UD = "UD"
state = DW_attach_ds(state, id_UD, session)

formods documentation built on April 12, 2025, 1:57 a.m.