Learn R Programming

regionReport (version 1.6.5)

with_wd: Temporarily evaluate an expression in a directory

Description

Temporarily evaluate an expression in a directory, then set the directory back to the original.

Usage

with_wd(dir, expr)

Arguments

dir
a directory to perform an expression within
expr
expression to evaluate

Details

See here: http://plantarum.ca/code/setwd-part2/