Sys.putenv {base} | R Documentation |
putenv
sets environment variables (for other processes called
from within R or future calls to Sys.getenv
from this
R process).
Sys.putenv(...)
... |
arguments in name=value form, with value
coercible to a character string. |
Non-standard R names must be quoted: see the Examples section.
A logical vector of the same length as x
, with elements being
true if setting the corresponding variable succeeded.
Not all systems need support Sys.putenv
(although all known
current platforms do).
Sys.getenv
, Startup for ways to set environment
variables for the R session.
setwd
for the working directory.
print(Sys.putenv(R_TEST="testit", "A+C"=123)) Sys.getenv("R_TEST")