install {devtools} | R Documentation |
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.
install(pkg = ".", reload = TRUE, quick = FALSE, local = TRUE, args = getOption("devtools.install.args"), quiet = FALSE, dependencies = NA, upgrade_dependencies = TRUE, build_vignettes = FALSE, keep_source = getOption("keep.source.pkgs"), threads = getOption("Ncpus", 1), force_deps = FALSE, metadata = remote_metadata(as.package(pkg)), out_dir = NULL, skip_if_log_exists = FALSE, ...)
pkg |
package description, can be path or package name. See
|
reload |
if |
quick |
if |
local |
if |
args |
An optional character vector of additional command line
arguments to be passed to |
quiet |
if |
dependencies |
|
upgrade_dependencies |
If |
build_vignettes |
if |
keep_source |
If |
threads |
number of concurrent threads to use for installing
dependencies.
It defaults to the option |
force_deps |
whether to force installation of dependencies even if their SHA1 reference hasn't changed from the currently installed version. |
metadata |
Named list of metadata entries to be added to the
|
out_dir |
Directory to store installation output in case of failure. |
skip_if_log_exists |
If the |
... |
additional arguments passed to |
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. This is
not always completely possible, see reload
for caveats.
To install a package in a non-default library, use with_libpaths
.
with_debug
to install packages with debugging flags
set.
Other package installation: install_bioc
,
install_bitbucket
,
install_cran
, install_github
,
install_git
, install_svn
,
install_url
, install_version
,
uninstall