Learn R Programming

R.utils (version 2.3.0)

withRepos: Evaluate an R expression with repositories set temporarily

Description

Evaluate an R expression with repositories set temporarily.

Usage

withRepos(expr, repos="[[mainstream]]", ..., envir=parent.frame())

Arguments

expr
The R expression to be evaluated.
repos
A character vector of repositories to use.
...
Additional arguments passed to useRepos().
envir
The environment in which the expression should be evaluated.

Value

Returns the results of the expression evaluated.

See Also

Internally, eval() is used to evaluate the expression. See also options() and install.packages.