rstudio / rstudio/packrat

Unable to retrieve package records although package records seem to be available

Open
#461 14 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
409
Forks
89
PR merge metrics
No merged PRs in 30d

Description

I'm running into the following issue with packrat::snapshot() :

Error: Unable to retrieve package records for the following packages:
- 'stringr'

packrat:::getPackageRecords("stringr"), however, successfully reports package records for stringr. In addition to CRAN, I'm using an internal package repository which contains multiple versions of archived packages (e.g. stringr 1.1.0). So stringr 1.1.0 is available and is correctly reported by available.packages().

I'm using packrat 0.4.8-57 installed directly from github.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with packrat::snapshot() and compare it with packrat:::getPackageRecords("stringr") and available.packages(). Trace how snapshot handles the archived stringr 1.1.0 from the internal repository; done means snapshot retrieves the package records successfully for this repository setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.