withr (version 1.0.0)

with_dir: Working directory

Description

Temorarily change the current working directory.

Usage

with_dir(new, code)

Arguments

new
[character(1)] New working directory
code
[any] Code to execute in the temporary environment

Value

  • [any] The results of the evaluation of the code argument.

See Also

withr for examples

setwd