install {packrat} | R Documentation |
Install a local development package.
Description
Uses R CMD INSTALL
to install the package. Will also try to install
dependencies of the package from CRAN, if they're not already installed.
Usage
install(
pkg = ".",
reload = TRUE,
quick = FALSE,
local = TRUE,
args = getOption("devtools.install.args"),
quiet = FALSE,
dependencies = NA,
build_vignettes = !quick,
keep_source = getOption("keep.source.pkgs")
)
Arguments
pkg |
package description, can be path or package name. |
reload |
if |
quick |
if |
local |
if |
args |
An optional character vector of additional command line
arguments to be passed to |
quiet |
if |
dependencies |
|
build_vignettes |
if |
keep_source |
If |
Details
By default, installation takes place using the current package directory.
If you have compiled code, this means that artefacts of compilation will be
created in the src/
directory. If you want to avoid this, you can
use local = FALSE
to first build a package bundle and then install
it from a temporary directory. This is slower, but keeps the source
directory pristine.
If the package is loaded, it will be reloaded after installation.