with_envvar {withr} | R Documentation |
Temporarily change system environment variables.
with_envvar(new, code, action = "replace") local_envvar(new, action = "replace", .local_envir = parent.frame())
new |
|
code |
|
action |
should new values |
.local_envir |
|
if NA
is used those environment variables will be unset.
If there are any duplicated variable names only the last one is used.
[any]
The results of the evaluation of the code
argument.
withr
for examples