with_dir {withr} | R Documentation |
Temporarily change the current working directory.
with_dir(new, code) local_dir(new, .local_envir = parent.frame())
new |
|
code |
|
.local_envir |
|
[any]
The results of the evaluation of the code
argument.
withr
for examples