Make package information available on packrat::restore error
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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