Change Working Directory and Run Function
Usage
runInDirectory(target.dir = tempdir(), FUN, ..., .dbg = FALSE)
Arguments
- target.dir
target directory. Default:
tempdir()
- FUN
function to be invoked
- ...
arguments to be passed to function FUN
- .dbg
if TRUE, debug messages on changing the directory are shown. Default:
FALSE