Sys.putenv {this.path}R Documentation

Set Environment Variables

Description

Sys.putenv() sets environment variables (for other processes called from within R or future calls to Sys.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

Sys.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)

[Package this.path version 2.7.0 Index]