Sys.putenv: Set Environment Variables

Sys.putenvR Documentation

Set Environment Variables

Description

Sys.putenv() sets environment variables (for other processes called from within R or future calls to \codelink3baseSys.getenv() from this R process).

Usage

Sys.putenv(x)

Arguments

x

a character vector, or an object coercible to character. Strings must be of the form "name=value".

Value

A logical vector, with elements being true if setting the corresponding variable succeeded.

See Also

\codelink

3baseSys.setenv()

Examples

Sys.putenv(c("R_TEST=testit", "A+C=123"))
Sys.getenv("R_TEST")
Sys.unsetenv("R_TEST")  ## under Unix-alikes may warn and not succeed
Sys.getenv("R_TEST", unset = NA)

ArcadeAntics/this.path documentation built on July 27, 2024, 12:05 a.m.