Shorthands for dependency specificationsSource:
Shorthands for dependency specifications
A named list with two character vectors:
the dependency types to use for direct installations and dependent
Supports concise ways of specifying which types of dependencies of
a package should be installed. It is similar to how
utils::install.packages() interprets its
Possible values for the
deps argument are:
TRUE: This means all hard dependencies plus
Suggestsfor direct installations, and hard dependencies only for dependent packages.
FALSE: no dependencies are installed at all.
NA(any atomic type, so
NA_character_, etc. as well): only hard dependencies are installed. See
If a list with two entries named
indirect, it is taken as the requested dependency types, for direct installations and dependent packages.
If a character vector, then it is taken as the dependency types for direct installations, and the hard dependencies are used for the dependent packages.
"hard" is included, then it is replaced by the hard dependency
"all" is included, then it is replaced by all
pkgdepends supports extra dependency types for direct installations.
These are specified with a
Config/Needs/ prefix in
and they can contain package references, separated by commas.
For example you can specify packages that are only needed for the
pkgdown website of the package:
Other package dependency utilities: