R: Temporarily set options then restore them while running code

.rxWithWd {RxODE} | R Documentation

## Temporarily set options then restore them while running code

### Description

Temporarily set options then restore them while running code

### Usage

    .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

### Value

value of code

### Examples

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

    getwd()

[Package RxODE version 1.1.4 Index]