Temorarily change the current working directory.
with_dir(new, code)
new
[character(1)] New working directory
[character(1)]
code
[any] Code to execute in the temporary environment
[any]
[any] The results of the evaluation of the code argument.
withr for examples
withr
setwd