Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

R Package Dependency Resolution

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-lib/pkgdepends

Repository files navigation

Package Dependency Resolution, Downloads and Installation

lifecycle: experimentalR build statusR-CMD-checkCodecov test coverage

pkgdepends is a toolkit for package dependencies, downloads andinstallations, to be used in other packages. If you are looking for apackage manager, seepak.

Features

  • 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 of dependencies.
  • Supports CRAN and Bioconductor packages automatically.
  • Supports packages on GitHub and GitLab.
  • Supports packages in git repositories.
  • Supports package bundles or files on the web.
  • Supports local package file and trees.
  • Supports theRemotes entry in theDESCRIPTION file.
  • Caches metadata and downloaded packages viapkgcache
  • Performs all downloads and HTTP queries concurrently.
  • Builds and installs packages in parallel.

Install

Install the package with:

install.packages("pkgdepends")

If you need the development version, install it with

pak::pak("r-lib/pkgdepends")

Usage

library(pkgdepends)

Package references

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/shiny

See“Packagereferences”for details.

Package dependencies

Dependencies of the development version of the cli package:

pd<- new_pkg_deps("r-lib/pkgcache")pd$solve()pd$draw()

See thepkg_depsclass for details.

Package downloads

Downloading all dependencies of a package:

pdl<- new_pkg_download_proposal("r-lib/cli")pdl$resolve()pdl$download()

See thepkg_download_proposalclass for details.

Package installation

Installing or updating a set of package:

lib<- tempfile()dir.create(lib)pdi<- new_pkg_installation_proposal("r-lib/cli",config=list(library=lib))pdi$solve()pdi$download()pdi$install()

Dependency resolution

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

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.

Installation plans

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.

Configuration

The details ofpkg_deps,pkg_download_proposalandpkg_installation_proposalcan be tuned with a list of configuration options. See“Configuration”for details.

Related

  • pak – R package manager
  • pkgcache – Metadata and packagecache
  • devtools – Tools for R packagedevelopers

Code of Conduct

Please note that the pkgdepends project is released with aContributorCode ofConduct.By contributing to this project, you agree to abide by its terms.

License

MIT (c) RStudio

About

R Package Dependency Resolution

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors20

Languages


[8]ページ先頭

©2009-2025 Movatter.jp