rstudio / rstudio/packrat

Make package information available on packrat::restore error

Open
#261 0 comments 0 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

We are programmatically calling packrat::restore from some other R code and would like to be able to generate messages including details about the package that could not be installed.

Right now, I've wrapped packrat::restore with a tryCatch and am just appending some canned text after whatever the error object includes.

Interesting metadata:

  • package name
  • package version
  • other things about how the package was obtained (CRAN, GitHub+SHA, etc)

We should also be able to determine if the packrat::restore error is not related to a single package but a more general problem.

Open to either passing some sort of error handler to packrat::restore or having a richer error object.

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 at the packrat::restore entry point and inspect how its tryCatch error handling currently exposes failures. Done means callers can obtain package name, version, and source metadata when one package fails, while also distinguishing errors that are not package-specific; add coverage for both cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.