Skip to contents

Explore the relationships between packages and repositories.

Usage

pkges_repos(repos = getOption("repos"), which = "all")

Arguments

repos

Repositories and their names are taken from getOptions("repos").

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.

Value

A data.frame with one line per package and at least one column per repository. It also has a column for Other repositories (Additional_repositories, or missing repositories), and the total number of dependencies and total number of repositories used.

Examples

pr <- pkges_repos()
head(pr)
#>         Package Repository @CRAN@ Other Packages_deps Repos
#> 1 AalenJohansen     @CRAN@      2     0             2     1
#> 2      AATtools     @CRAN@      4     0             4     1
#> 3        ABACUS     @CRAN@      4     0             4     1
#> 4   abasequence     @CRAN@      0     0             0     0
#> 5    abbreviate     @CRAN@      1     0             1     1
#> 6           abc     @CRAN@      5     0             5     1