Description Usage Arguments Details Value
Given a set of R package requirements, install those packages into the
library path requested via library
, and then activate that library path.
1 |
... |
The R packages to be used with this script. |
library |
The library path into which the requested packages should be installed.
When |
isolate |
Boolean; should the active library paths be included in the set of library
paths activated for this script? Set this to |
attach |
Boolean; should the set of requested packages be automatically attached?
If |
verbose |
Boolean; be verbose while installing packages? |
renv::use()
is intended to be used within standalone R scripts. It can
be useful when you'd like to specify an R script's dependencies directly
within that script, and have those packages automatically installed and
loaded when the associated script is run. In this way, an R script can more
easily be shared and re-run with the exact package versions requested via
use()
.
renv::use()
is inspired in part by the groundhog
package, which provides an alternate mechanism for specifying a script's
R package requirements within that same R script.
This function is normally called for its side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.