A source package can not be installed if its dependencies are not.
Will not reinstall packages if they are up-to-date
will roxygenise packages if needed
Usage
pkgs_install(
pkgids,
lib,
src_pkgs = get_srcpkgs(),
only_deps = FALSE,
quiet = TRUE,
...
)Arguments
- pkgids
a list of package ids (names, paths or object), or a srcpkgs object. Also accept a singleton package object
- lib
directory where to install and find installed pkgs
- src_pkgs
a collection of source packages as a
srckgsobject.- only_deps
whether not to include
pkgids, only their dependencies.- quiet
whether to be quiet/silent
- ...
passed to
devtools::install()
Examples
pkg <- setup_and_get_dummy_srcpkg()
dest <- tempfile()
pkgs_install(pkg, dest)
#> [1] "dummy.srcpkg"