Working directory

Share:

Description

Temorarily change the current working directory.

Usage

1
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