requiredPackages {BiocCaseStudies} | R Documentation |
Both functions compare the Depends
field of the
DESCRIPTION
of the BiocCaseStudies
package.
requiredPackages
is run before a build of the book. It throws
an error if there are any missing or outdated packages.
packages2install
returns a character vector of packages
that need (re)installing.
requiredPackages(load=FALSE) packages2install()
load |
Logical. Should all packages be loaded? |
requiredPackages
returns invisible(NULL)
.
The function is called for its side effects.
packages2install
returns a character vector that can be passed
to the install
function from the BiocManager
package.
Florian Hahne
## Not run: if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install(packages2install()) ## End(Not run)