setVariable: Set an environment variable

View source: R/setVariable.R

setVariableR Documentation

Set an environment variable

Description

Set an environment variable safely, unsetting it if the supplied value is NA.

Usage

setVariable(name, value)

Arguments

name

String containing the name of an environment variable.

value

String containing the value of an environment variable. This can be NA to unset the variable.

Value

String containing the value of the variable before running this function; or NA, if the variable was not set.

Author(s)

Aaron Lun


LTLA/basilisk.utils documentation built on June 26, 2022, 4:06 a.m.