powered by
Sys.putenv sets environment variables (for other processes called from within R or future calls to Sys.getenv from this R process).
Sys.putenv
Sys.getenv
Sys.putenv(x)
A logical vector, with elements being true if setting the corresponding variable succeeded.
a character vector, or an object coercible to character. Strings must be of the form "name=value".
"name=value"
Sys.setenv
Sys.putenv(c("R_TEST=testit", "A+C=123")) Sys.getenv("R_TEST") Sys.unsetenv("R_TEST") # on Unix-alike may warn and not succeed Sys.getenv("R_TEST", unset = NA)
Run the code above in your browser using DataLab