- Notifications
You must be signed in to change notification settings - Fork41
R Package Dependency Resolution
License
Unknown, MIT licenses found
Licenses found
r-lib/pkgdepends
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Package Dependency Resolution, Downloads and Installation
pkgdepends is a toolkit for package dependencies, downloads andinstallations, to be used in other packages. If you are looking for apackage manager, seepak.
- Look up package dependencies recursively.
- Visualize package dependencies.
- Download packages and their dependencies.
- Install downloaded packages.
- Includes a dependency solver to find a consistent set ofdependencies.
- Supports CRAN and Bioconductor packages automatically.
- Supports packages on GitHub.
- Supports local package file and trees.
- Supports the
Remotesentry in theDESCRIPTIONfile. - Caches metadata and downloaded packages viapkgcache
- Performs all downloads and HTTP queries concurrently.
- Builds and installs packages in parallel.
Once on CRAN, install the package with:
install.packages("pkgdepends")library(pkgdepends)A package reference (ref) specifies a location from which an R packagecan be obtained from. Examples:
devtoolscran::devtoolsbioc::Biobaser-lib/pkgdependshttps://github.com/r-lib/pkgdependslocal::~/works/shinySee“Packagereferences”for details.
Dependencies of the development version of the cli package:
pd<- new_pkg_deps("r-lib/pkgcache")pd$solve()pd$draw()
#> r-lib/pkgcache 1.3.0.9000 [new][bld][cmp][dl] (unknown size)#> +-assertthat 0.2.1 [new][dl] (52.27 kB)#> +-callr 3.7.0 [new][dl] (437.95 kB)#> | +-processx 3.5.2 [new][dl] (299.05 kB)#> | | +-ps 1.6.0 [new][dl] (286.34 kB)#> | | \-R6 2.5.1 [new][dl] (82.58 kB)#> | \-R6#> +-cli 3.1.0 [new]#> | \-glue 1.5.0 [new]#> +-curl 4.3.2 [new][dl] (880.06 kB)#> +-digest 0.6.28 [new][dl] (292.25 kB)#> +-filelock 1.0.2 [new][dl] (29.14 kB)#> +-glue#> +-jsonlite 1.7.2 [new][dl] (509.74 kB)#> +-prettyunits 1.1.1 [new][dl] (34.73 kB)#> +-R6#> +-processx#> +-rappdirs 0.3.3 [new][dl] (46.69 kB)#> +-rlang 0.4.12 [new][dl] (1.36 MB)#> +-tibble 3.1.6 [new]#> | +-ellipsis 0.3.2 [new][dl] (38.58 kB)#> | | \-rlang#> | +-fansi 0.5.0 [new][dl] (251.70 kB)#> | +-lifecycle 1.0.1 [new]#> | | +-glue#> | | \-rlang#> | +-magrittr 2.0.1 [new][dl] (226.63 kB)#> | +-pillar 1.6.4 [new][dl] (1.03 MB)#> | | +-cli#> | | +-crayon 1.4.2 [new][dl] (155.29 kB)#> | | +-ellipsis#> | | +-fansi#> | | +-lifecycle#> | | +-rlang#> | | +-utf8 1.2.2 [new][dl] (210.68 kB)#> | | \-vctrs 0.3.8 [new][dl] (1.45 MB)#> | | +-ellipsis#> | | +-glue#> | | \-rlang#> | +-pkgconfig 2.0.3 [new][dl] (17.81 kB)#> | +-rlang#> | \-vctrs#> \-uuid 1.0-3 [new][dl] (48.79 kB)#> #> Key: [new] new | [dl] download | [bld] build | [cmp] compileSee thepkg_depsclass for details.
Downloading all dependencies of a package:
pdl<- new_pkg_download_proposal("r-lib/cli")pdl$resolve()pdl$download()
See thepkg_download_proposalclass for details.
Installing or updating a set of package:
lib<- tempfile()pdi<- new_pkg_installation_proposal("r-lib/cli",config=list(library=lib))pdi$solve()pdi$download()pdi$install()
pkg_deps,pkg_download_proposalandpkg_installation_proposalall resolve their dependencies recursively, to obtain information aboutall packages needed for the specifiedpackagereferences.See“Dependencyresolution”for details.
The dependency solver takes the resolution information, and works outthe exact versions of each package that must be installed, such thatversion and other requirements are satisfied. See“The dependencysolver”for details.
pkg_installation_proposalcan create installation plans, and then also install them. It is alsopossible to import installation plans that were created by other tools.See“Installationplans”for details.
The details ofpkg_deps,pkg_download_proposalandpkg_installation_proposalcan be tuned with a list of configuration options. See“Configuration”for details.
Please note that the pkgdepends project is released with aContributorCode ofConduct.By contributing to this project, you agree to abide by its terms.
MIT (c) RStudio
About
R Package Dependency Resolution
Topics
Resources
License
Unknown, MIT licenses found
Licenses found
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.