Temporarily set options then restore them while running code
Arguments
- wd
working directory to temporarily set the system to while
evaluating the code
- code
The code to run during the sink
Examples
.rxWithWd(tempdir(), {
getwd()
})
#> [1] "/tmp/RtmpvaQhIw"
getwd()
#> [1] "/home/runner/work/rxode2/rxode2/docs/reference"