in_dir: Evaluate an expression under a specified working directory

Description Usage Arguments Examples

View source: R/utils.R

Description

Change the working directory, evaluate the expression, and restore the working directory.

Usage

1
in_dir(dir, expr)

Arguments

dir

Path to a directory.

expr

An R expression.

Examples

1
2
3
4
5

yihui/xfun documentation built on Dec. 12, 2018, 10:49 p.m.