Learn R Programming

AnalyzeFMRI (version 1.1-25)

with_dir: Working directory

Description

Temporarily change the current working directory.

Usage

with_dir(new, code)

Value

[any]
The results of the evaluation of the code

argument.

Arguments

new

[character(1)]
New working directory

code

[any]
Code to execute in the temporary environment

See Also

Examples

Run this code
getwd()

with_dir(tempdir(), getwd())

Run the code above in your browser using DataLab