rstudio / rstudio/packrat

packrat::snapshot() fails

Open
#217 5 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

I'm using a third-party package “WindR" in my R packrat project. I've included the source of the package in local repo. But, when I type packrat::snapshot() in R console, it returns the following error

Error in read.dcf(...) : cannot open the connection
In addition: Warning message:
In read.dcf(...) :
cannot open compressed file 'D:/PACKRAT_REPO/WindR', probable reason 'Permission denied'

Besides, I'm wondering if there's a way to ignore certain package like this one when calling snapshot? Thanks!

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 from packrat::snapshot() with the local WindR package source and inspect the read.dcf error for D:/PACKRAT_REPO/WindR. Determine whether the snapshot failure and the requested package exclusion are separate cases; done means the behavior is reproducible and the expected handling is covered by an appropriate test or documented outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.