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 Nov. 18, 2018, 4:11 p.m.