Skip to contents

Given the deadlines by the CRAN volunteers packages can be archived which can trigger some other packages to be archived. This code calculates how much time the chain reaction will go on if maintainer don't fix/update the packages.

Usage

cran_doom(which = "strong", bioc = FALSE)

Arguments

which

a character vector listing the types of dependencies, a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances", character string "strong" (default) for the first three elements of that vector.

bioc

Logical value if Bioconductor packages should be provided, (Requires internet connection).

Value

A list with multiple elements:

  • time_till_last: Time till last package is affected.

  • last_archived: the date of the last package that would be affected.

  • npackages: Numeric vector with the number of packages used.

  • details: A data.frame with information for each individual package: Name, date affected, affected directly, repository, times it is affected (by archival causing issues.)

Details

Packages on Suggested: field should

See also

Examples

cd <- cran_doom()
head(cd$details)
#>     Package   Deadline   type repo n_affected
#> 1 GGMselect 2025-08-14 direct CRAN          1
#> 2     geouy 2025-08-18 direct CRAN          5
#> 3    seminr 2025-08-19 direct CRAN          5
#> 4   truncSP 2025-08-19 direct CRAN          2
#> 5   butcher 2025-08-19 direct CRAN          1
#> 6    gamlss 2025-08-19 direct CRAN          1