Error in dir_copy(file.path(cacheLibDir(pkgRecord$name, pkgRecord$hash)),
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
When I try to use Packrat with RStudio 0.99.1285, I have an issue where I have loaded a package that Packrat thinks needs to be updated into my library (and is in my lock file), but when I try to install it back into my workspace, I get the following error:
Installing manipulate (1.0.1) ...
Error in dir_copy(file.path(cacheLibDir(pkgRecord$name, pkgRecord$hash)), :
Directory already exists at path '/Users/petergensler/Desktop/SuperStore Analysis/packrat/lib/x86_64-apple-darwin13.4.0/3.3.1/manipulate'.
I don't think packrat is fully restoring all of the packages from my lock file. Attached is my session info, and the lock file. Let me know how I can help.
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] magrittr_1.5 formatR_1.4 htmltools_0.3.5 tools_3.3.1 yaml_2.1.13
[6] Rcpp_0.12.5 stringi_1.1.1 rmarkdown_1.0 knitr_1.14 stringr_1.0.0
[11] digest_0.6.9 packrat_0.4.7-1 evaluate_0.9
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 by reproducing the Packrat restore or install flow described in the issue with the provided lock file and session information. Investigate the dir_copy error for the existing manipulate directory under packrat/lib, and consider the work complete when restoring the locked package no longer fails because that directory already exists.
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
- 38/100