R/switchboard_global.R

Defines functions get_switchboardVariable set_switchboardVariable

# Environment that holds various global variables and settings for switchboards
switchboard.env <- new.env(parent = emptyenv())

set_switchboardVariable <- function(switchboardVariable, variableValue) 
									assign(switchboardVariable, variableValue, envir = switchboard.env)
get_switchboardVariable <- function(switchboardVariable) 
									unlist(mget(switchboardVariable, envir = switchboard.env, ifnotfound = NA))

Try the switchboard package in your browser

Any scripts or data that you put into this service are public.

switchboard documentation built on Oct. 9, 2021, 1:06 a.m.