powered by
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.
with_extlib(packages, expr, envir = parent.frame())extlib(packages)user_lib()packrat_lib()
extlib(packages)
user_lib()
packrat_lib()
A set of package names (as a character vector) to load for the duration of evaluation of expr.
expr
An R expression.
An environment in which the expression is evaluated.
# NOT RUN { with_extlib("lattice", xyplot(1 ~ 1)) # }
Run the code above in your browser using DataLab