Packrat is a package for `R` which allows the creation of "drag and drop" projects, together with libraries and their required packages.
Questions tagged [packrat]
77 questions
2
votes
0 answers
Ignore specific files in packrat search
I am creating reports using R, RStudio, knitr, and packrat. I have a project folder structure similar to below:
project_folder/
- packrat/
- .Rprofile
- analaysis_folder/
- library.R
- child.rnw
- data_folder/
-…

Prevost
- 677
- 5
- 20
2
votes
0 answers
Difference in libpaths between Rstudio and Knitr with packrat
I have a RMD file. I can knit it with knitr from RStudio interface. But when I try to run a separate chunk in console I got errors:
Error in library(bla) : there is no package called bla
where bla is my homemade package. I haven't installed bla to…

testlnord
- 438
- 1
- 5
- 14
2
votes
1 answer
devtools::build() cannot stat directories that exist
I'm using devtools to build a package that has packrat enabled. When I issue the command devtools::build() I get the following:
'/usr/lib64/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD build '/home/user/Development/CPAT'…

cgmil
- 410
- 2
- 18
2
votes
1 answer
Pyparsing packrat slows down performance
I'm looking for a way to improve the performance of my parser I built with pyparsing. I read up on packrat parsing and it seems like this could really help with my parser's performance. However, when I enabled packrat parsing, the performance got…

Giuseppe Cianci
- 407
- 3
- 9
2
votes
0 answers
R: Packrat init() returns error "cannot set reparse point" and "target already exists and is not a symlink"
I wanted to try packrat, but I ran into a warning and error message upon initializing it on a project:
> library(packrat)
> packrat::init()
Initializing packrat project in directory:
- "\\userhome/myuser/R_scripts/ratpack_test"
Adding these…

piptoma
- 754
- 1
- 8
- 19
2
votes
1 answer
How to drop PackRat folder while submitting on CRAN
I have built a package in Rstudio on MAC OS and to better manage dependencies, I was using PackRat tool. Right now, my package passed all the tests, checks, and is getting built successfully. I have uploaded it on GitHub as well, but I saw that the…

Usernow
- 149
- 2
- 8
2
votes
2 answers
Packrat bootstrap doesn't find the packrat private library
I've built a Packrat project with several packages installed in the Packrat private library. I want to take the code and bring it, along with the Packrat library, to another system. The system I built the library in is Windows 7 running R 3.2.2…

Josh
- 235
- 2
- 9
2
votes
1 answer
Packrat with local binary repository
I want to use packrat on a Windows 7 machine with no internet connection.
I have downloaded all binary packages from http://cran.r-project.org/bin/windows/contrib/3.1/ into the local folder C:/xyz/CRAN_3_1.
The problem is now…

cryo111
- 4,444
- 1
- 15
- 37
2
votes
0 answers
Installation of dependencies of R packages from local repository
Has the issue described here been resolved:
https://github.com/rstudio/packrat/issues/169
If not, does it mean that if I have a package [package_from_local_repo] installed by packrat from a local repository, its dependencies (although available in…

Leah S
- 21
- 3
1
vote
1 answer
Trouble installing packages from packrat log file
I am trying to work with some code that was written with R/3.6* and its packages. See the lock file at https://gist.github.com/khanna7/cb5791bdf65df55d320fd098d6093b1b. The main package I need, from the lock file, is
Package: ergm
Source:…

dapple-putt-poultry
- 103
- 6
1
vote
0 answers
Packrat Parser in Scala hangs indefinitely even though there are no elements left in input
I've a custom packrat parser written to handle some tokens. However when running the parser it hangs indefinitely even though all tokens were matched successfully by the parser. However changing the return type of one matcher to Parser from…

Kishore Bandi
- 5,537
- 2
- 31
- 52
1
vote
1 answer
packrat::resolve() keeps asking me to install Rtools while it is already installed
I discovered today the very (very) cool packrat R package to make your project reproducible.
However, when I use packrat for my project by using packrat::resolve() in Rstudio, the packages that need Rtools trigger a pop-up window asking me to…

FrsLry
- 348
- 4
- 19
1
vote
0 answers
packrat restore using old windows binaries - need cran mirror with old windows package binaries
I would like to enable packrat::restore() to use Windows binaries. It seems that official CRAN mirrors do not keep old windows package binaries, hence packrat::restore() will compile from source if the snapshotted package version is no longer the…

user3408956
- 53
- 6
1
vote
0 answers
packrat - move environment from one project to another
I am using packrat in one of my R-studio project, call it project A. I also created brand new project (call it B), I would like to take environment of project A and move it to project B. Can I just copy packrat folder from one project to another.

user1700890
- 7,144
- 18
- 87
- 183
1
vote
0 answers
packrat fails to retrieve Bioconductor packages
I'm trying to use packrat to get some semblance of reproducibility from different R projects. However it consistently fails to fetch Bioconductor packages when restoring from a snapshot. curl returns a 404 as it tries to fetch them from CRAN even…

alan ocallaghan
- 3,116
- 17
- 37