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")
#>
#> ✔ Updated metadata database: 1.43 MB in 3 files.
#>
#> ℹ Updating metadata database
#> ✔ Updating metadata database ... done
#>
#> # A data frame: 2 × 32
#> package version depends suggests license needscompilation imports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 pkgdown 2.0.7 R (>= 3.1.0) "covr, di… MIT + … NA "bslib…
#> 2 pkgdown 2.0.7 R (>= 3.1.0) "covr, di… MIT + … no "bslib…
#> # ℹ 25 more variables: linkingto <chr>, enhances <chr>, os_type <chr>,
#> # path <chr>, repodir <chr>, rversion <chr>, platform <chr>,
#> # priority <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>, license_restricts_use <chr>,
#> # license_is_foss <chr>, archs <chr>
meta_cache_deps("pkgdown", recursive = FALSE)
#> # A data frame: 42 × 32
#> package version depends suggests license needscompilation imports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 bslib 0.5.0 R (>= 2.10) bsicons… MIT + … NA base64…
#> 2 callr 3.7.3 R (>= 3.4) asciica… MIT + … NA proces…
#> 3 cli 3.6.1 R (>= 3.4) callr, … MIT + … NA utils
#> 4 desc 1.4.2 R (>= 3.4) callr, … MIT + … NA cli, R…
#> 5 digest 0.6.33 R (>= 3.3.0) tinytes… GPL (>… NA utils
#> 6 downlit 0.4.3 R (>= 3.4.0) covr, h… MIT + … NA brio, …
#> 7 fs 1.6.2 R (>= 3.4) covr, c… MIT + … NA methods
#> 8 httr 1.4.6 R (>= 3.5) covr, h… MIT + … NA curl (…
#> 9 jsonlite 1.8.7 methods httr, v… MIT + … NA NA
#> 10 magrittr 2.0.3 R (>= 3.4.0) covr, k… MIT + … NA NA
#> # ℹ 32 more rows
#> # ℹ 25 more variables: linkingto <chr>, enhances <chr>, os_type <chr>,
#> # path <chr>, repodir <chr>, rversion <chr>, platform <chr>,
#> # priority <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>, license_restricts_use <chr>, …
meta_cache_revdeps("pkgdown", recursive = FALSE)
#> # A data frame: 8 × 32
#> package version depends suggests license needscompilation imports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 CALANGO 1.0.16 R (>= 3.6.… "Annota… GPL-2 no "asser…
#> 2 devtools 2.4.5 R (>= 3.0.… "BiocMa… MIT + … NA "cli (…
#> 3 pkgdown 2.0.7 R (>= 3.1.… "covr, … MIT + … NA "bslib…
#> 4 preferably 0.4.1 R (>= 3.1.… NA MIT + … NA NA
#> 5 CALANGO 1.0.16 R (>= 3.6.… "Annota… GPL-2 no "asser…
#> 6 devtools 2.4.5 R (>= 3.0.… "BiocMa… MIT + … no "cli (…
#> 7 pkgdown 2.0.7 R (>= 3.1.… "covr, … MIT + … no "bslib…
#> 8 preferably 0.4.1 R (>= 3.1.… NA MIT + … no NA
#> # ℹ 25 more variables: linkingto <chr>, enhances <chr>, os_type <chr>,
#> # path <chr>, repodir <chr>, rversion <chr>, platform <chr>,
#> # priority <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>, license_restricts_use <chr>,
#> # license_is_foss <chr>, archs <chr>