packrat
Packrat is a dependency management system for R. Contribute to rstudio/packrat development by creating an account on GitHub.
R's old dependency manager now runs on a vendored copy of its own successor.
◆Recent moves
- 1y ago
Handles Bioconductor detection and varied repository layouts
A batch of repository-compatibility fixes: Bioconductor packages were being misidentified as CRAN because their DESCRIPTION files now include a Repository field, and downloads now try CRAN-like, Nexus and older Artifactory archive paths in turn. The vendored renv was refreshed for Posit Package Manager URL handling on more Linux distributions.
View source ↗ - 3y ago
Restores packages installed from repository subdirectories
A single fix for restoring packages that live in a subdirectory of a GitHub, GitLab or Bitbucket repository. Narrow, and typical of the maintenance this package now receives.
View source ↗ - 3y ago
Private repository restores; git credentials masked from installs
Restoring from private GitHub, GitLab and Bitbucket repositories becomes possible via the vendored renv and token environment variables. The more interesting half is defensive: Packrat now hides common git service credentials from the subprocesses that install packages, so a package build script cannot read them.
View source ↗ - 4y ago
GitLab private repos authenticate via GITLAB_PAT
Fixes private GitLab and Bitbucket archive downloads and replaces username and password authentication with GITLAB_PAT, which is what GitLab actually supports. Tracking an upstream service's authentication change rather than any decision here.
View source ↗ - 4y ago
Bundles renv for dependency detection; adds authenticated downloads
The release where the successor moves inside: a bundled renv takes over dependency detection to avoid evaluation side-effects, and authenticated downloaders arrive for the three git hosts. It also stops relying on a devtools function that had been removed upstream, the recurring hazard of a package built on other packages' internals.
View source ↗ - 4y ago
Breaking: cache directory now includes an R version suffix
A breaking change to the cache layout so binaries compiled against different R versions no longer share a directory, with manual migration required for existing caches. It fixes a real correctness problem — there is no guarantee packages built for one R minor version work on the next.
View source ↗