Learn R Programming

packrat (version 0.4.8-1)

packrat-external: Managing External Libraries

Description

These functions provide a mechanism for (temporarily) using packages outside of the packrat private library. The packages are searched within the 'default' libraries; that is, the libraries that would be available upon launching a new R session.

Usage

with_extlib(packages, expr, envir = parent.frame())
extlib(packages)
user_lib()
packrat_lib()

Arguments

packages
A set of package names (as a character vector) to load for the duration of evaluation of expr.
expr
An R expression.
envir
An environment in which the expression is evaluated.

Examples

Run this code
## Not run: 
# with_extlib("lattice", xyplot(1 ~ 1))
# ## End(Not run)

Run the code above in your browser using DataLab