powered by
Temporarily set options then restore them while running code
.rxWithWd(wd, code)
working directory to temporarily set the system to while evaluating the code
The code to run during the sink
value of code
# NOT RUN { .rxWithWd(tempdir(), { getwd() }) getwd() # }
Run the code above in your browser using DataLab