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


LTLA/basilisk.utils documentation built on June 10, 2021, 8:41 p.m.