dot-rxWithWd function

Temporarily set options then restore them while running code

Temporarily set options then restore them while running code

.rxWithWd(wd, code)

Arguments

  • wd: working directory to temporarily set the system to while evaluating the code
  • code: The code to run during the sink

Returns

value of code

Examples

.rxWithWd(tempdir(), { getwd() }) getwd()