setVariable: Set an environment variable

Description Usage Arguments Value Author(s)

View source: R/setVariable.R

Description

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

Usage

1
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


basilisk.utils documentation built on Jan. 29, 2021, 2 a.m.