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
.
Sys.getenv
,
setwd
for the working directory.
print(Sys.putenv("R_TEST"="testit", ABC=123)) Sys.getenv("R_TEST")