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
4
votes
1 answer
Packrat: Does the order of snapshotting vs. restoring matter?
Sometimes when working with packrat, one gets this kind of output whilst checking on the status of the packrat library:
> packrat::status()
The following packages are tracked by packrat, but are no longer available in the local library nor present…

BroVic
- 979
- 9
- 26
4
votes
1 answer
How to snapshot R package to packrat?
I'm using packrat for my local R package. I'm trying to add MultinomialCI as a dependency, but I can't get it loaded into packrat. Particularly, I don't know how to manually snapshot.
Rstudio's package viewer looks similar to this:
| Name |…

nev
- 297
- 3
- 13
4
votes
1 answer
Loading dependencies from package-internal packrat library
I am building an R package with packrat. The package is fully tested and installation from the locally saved source file by
install.packages("myPackage.tar.gz", repos = NULL, type = "source")
works if all dependencies (specified in the Imports:…

denise
- 149
- 14
4
votes
1 answer
RStudio, Packrat and Knitr
I'm working in RStudio. I first created a knitr file in a project, and compiling the pdf worked flawlessly. Then, while I was working in different files, I activated packrat for the project. (And later on deactivated it again)
Now, when I try to…

FooBar
- 15,724
- 19
- 82
- 171
3
votes
1 answer
How to avoid left-recursion infinite loops in Fastparse?
I had a parser that worked well in Scala Packrat parser combinators.
I would like to try something faster with the Fastparse library.
However, it cannot handle left-recursion infinite loops.
Is there any standard way to cope with that?
sealed trait…

dawid
- 663
- 6
- 12
3
votes
1 answer
packrat: remove older package versions from src directory
My packrat.src directory contains multiple *.tar.gz files for various libraries.
So for example, the subfolder for broom looks like this:
broom
├── broom_0.4.1.tar.gz
└── broom_0.4.4.tar.gz
What is the correct way to remove, say the older package…

stats-hb
- 958
- 13
- 31
3
votes
2 answers
Docker in R and/or Packrat for Reproducible Science
I am not completely sure if Docker is enough for R development or I should use in in conjunction with Packrat. I have read several posts that state that docker is sufficient. The only place that support this claim is this post. However I was not…

Vangelis Theodorakis
- 171
- 1
- 12
3
votes
0 answers
Unable to retrieve package records when using restore
I am developing an R package and I am using packrat to manage dependencies.
After I installed dplyr in the project library I get the following error when I use packrat::restore():
Errore: Unable to retrieve package records for the following…

amarchin
- 2,044
- 1
- 16
- 32
3
votes
1 answer
R: instructions for unbundling and using a packrat snapshot
I used packrat (v 0.4.8.-1) to to create a snapshot and bundle of the R package dependencies that go along with the corresponding R code. I want to provide the R code and packrat bundle to others to make the work I am doing (including the R…

user3791234
- 141
- 1
- 9
3
votes
0 answers
How can I load a packrat managed package from any working directory
I built a package using packrat to deal with dependencies versions.
@nyzls65c:~/private/research$ tree -L 1 -a sp.util
sp.util
|-- .Rbuildignore
|--…

statquant
- 13,672
- 21
- 91
- 162
3
votes
1 answer
How to setup a local repository for packrat?
I am using packrat_0.4.3 and have some my own packages.
I follow this introduction to create a local repository: http://cran.r-project.org/doc/manuals/R-admin.html#Setting-up-a-package-repository, then use this command to init…

Bangyou
- 9,462
- 16
- 62
- 94
3
votes
1 answer
Add rCharts to packrat
I am working on an R project (R studio) that requires several packages and packrat to manage them. I have been able to find CRAN or binaries for all of them except rCharts which has to be installed with:
require(devtools)
…

Ryan
- 231
- 3
- 9
2
votes
1 answer
Packrat caching : Right to left vs. Left to right?
I'm currently trying to familiarize myself with packrat parsing. So I've read the PDF paper from 2002 linked here and in section 2.3 it describes packrat caching as a preliminary process (which occurs before the actual parsing) in which a full…

ostrebler
- 940
- 9
- 32
2
votes
1 answer
Install package dependency that has no binary version
I am trying to set up a packrat project but it keeps failing because one of the packages (installed from GitHub) depends on a package that doesn't currently have a binary version on CRAN. This is the error message I receive:
>…

BroVic
- 979
- 9
- 26
2
votes
0 answers
Clean and Rebuild a Package with Packrat alongside in RStudio
Coming from a python playground and being a big fan of virtualenv and ofcourse, a rookie in R, I intended to have a similar setup in my R projects and packages with the aid of packrat. (At least it seemed intuitive.)
So far, without packrat, I…

Subbu
- 37
- 5