It uses CRAN and BioConductor packages, for the current platform and R version, from the default repositories.
Usage
meta_cache_deps(packages, dependencies = NA, recursive = TRUE)
meta_cache_revdeps(packages, dependencies = NA, recursive = TRUE)
meta_cache_update()
meta_cache_list(packages = NULL)
meta_cache_cleanup(force = FALSE)
meta_cache_summary()
Arguments
- packages
Packages to query.
- dependencies
Dependency types to query. See the
dependencies
parameter ofutils::install.packages()
.- recursive
Whether to query recursive dependencies.
- force
Whether to force cleanup without asking the user.
Value
A data frame of the dependencies. For
meta_cache_deps()
and meta_cache_revdeps()
it includes the
queried packages
as well.
Details
meta_cache_list()
lists all packages.
meta_cache_update()
updates all metadata. Note that metadata is
automatically updated if it is older than seven days.
meta_cache_deps()
queries packages dependencies.
meta_cache_revdeps()
queries reverse package dependencies.
meta_cache_summary()
lists data about the cache, including its location
and size.
meta_cache_cleanup()
deletes the cache files from the disk.
Examples
meta_cache_list("pkgdown")
#> ℹ Loading metadata database
#> ✔ Loading metadata database ... done
#>
#> # A data frame: 2 × 32
#> package version depends suggests needscompilation license imports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 pkgdown 2.1.1 R (>= 4.0.0) "covr, di… NA MIT + … "bslib…
#> 2 pkgdown 2.1.1 R (>= 4.0.0) "covr, di… no MIT + … "bslib…
#> # ℹ 25 more variables: linkingto <chr>, enhances <chr>,
#> # license_restricts_use <chr>, os_type <chr>, path <chr>,
#> # priority <chr>, license_is_foss <chr>, archs <chr>, repodir <chr>,
#> # rversion <chr>, platform <chr>, ref <chr>, type <chr>, direct <lgl>,
#> # status <chr>, target <chr>, mirror <chr>, sources <list>,
#> # filesize <int>, sha256 <chr>, sysreqs <chr>, built <chr>,
#> # published <dttm>, deps <list>, md5sum <chr>
meta_cache_deps("pkgdown", recursive = FALSE)
#> # A data frame: 42 × 32
#> package version depends suggests needscompilation license imports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 bslib 0.8.0 R (>= 2.… "bsicon… NA MIT + … "base6…
#> 2 callr 3.7.6 R (>= 3.… "asciic… NA MIT + … "proce…
#> 3 cli 3.6.3 R (>= 3.… "callr,… NA MIT + … "utils"
#> 4 desc 1.4.3 R (>= 3.… "callr,… NA MIT + … "cli, …
#> 5 digest 0.6.37 R (>= 3.… "tinyte… NA GPL (>… "utils"
#> 6 downlit 0.4.4 R (>= 4.… "covr, … NA MIT + … "brio,…
#> 7 fontawesome 0.5.3 R (>= 3.… "covr, … NA MIT + … "rlang…
#> 8 fs 1.6.5 R (>= 3.… "covr, … NA MIT + … "metho…
#> 9 httr2 1.0.7 R (>= 4.… "askpas… NA MIT + … "cli (…
#> 10 jsonlite 1.8.9 methods "httr, … NA MIT + … NA
#> # ℹ 32 more rows
#> # ℹ 25 more variables: linkingto <chr>, enhances <chr>,
#> # license_restricts_use <chr>, os_type <chr>, path <chr>,
#> # priority <chr>, license_is_foss <chr>, archs <chr>, repodir <chr>,
#> # rversion <chr>, platform <chr>, ref <chr>, type <chr>, direct <lgl>,
#> # status <chr>, target <chr>, mirror <chr>, sources <list>,
#> # filesize <int>, sha256 <chr>, sysreqs <chr>, built <chr>, …
meta_cache_revdeps("pkgdown", recursive = FALSE)
#> # A data frame: 8 × 32
#> package version depends suggests needscompilation license imports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 CALANGO 1.0.20 R (>= 3.6.0) "Annota… NA GPL-2 "asser…
#> 2 devtools 2.4.5 R (>= 3.0.2)… "BiocMa… NA MIT + … "cli (…
#> 3 pkgdown 2.1.1 R (>= 4.0.0) "covr, … NA MIT + … "bslib…
#> 4 washr 1.0.1 NA "knitr,… NA GPL (>… "desc …
#> 5 CALANGO 1.0.20 R (>= 3.6.0) "Annota… no GPL-2 "asser…
#> 6 devtools 2.4.5 R (>= 3.0.2)… "BiocMa… no MIT + … "cli (…
#> 7 pkgdown 2.1.1 R (>= 4.0.0) "covr, … no MIT + … "bslib…
#> 8 washr 1.0.1 NA "knitr,… no GPL (>… "desc …
#> # ℹ 25 more variables: linkingto <chr>, enhances <chr>,
#> # license_restricts_use <chr>, os_type <chr>, path <chr>,
#> # priority <chr>, license_is_foss <chr>, archs <chr>, repodir <chr>,
#> # rversion <chr>, platform <chr>, ref <chr>, type <chr>, direct <lgl>,
#> # status <chr>, target <chr>, mirror <chr>, sources <list>,
#> # filesize <int>, sha256 <chr>, sysreqs <chr>, built <chr>,
#> # published <dttm>, deps <list>, md5sum <chr>