Evaluate an expression under a specified working directory
Change the working directory, evaluate the expression, and restore the working directory.
in_dir(dir, expr)
dir |
Path to a directory. |
expr |
An R expression. |
library(xfun) in_dir(tempdir(), { print(getwd()) list.files() })
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.