requiredPackages: check for missing and outdated packages

Description Usage Arguments Value Author(s) Examples

View source: R/requiredLibs.R

Description

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.

Usage

1
2

Arguments

load

Logical. Should all packages be loaded?

Value

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.

Author(s)

Florian Hahne

Examples

1
2
3
4
5
6
  ## Not run: 
    if (!requireNamespace("BiocManager", quietly = TRUE))
        install.packages("BiocManager")
    BiocManager::install(packages2install())
  
## End(Not run)

BiocCaseStudies documentation built on Nov. 8, 2020, 5:12 p.m.