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