Closed wcornwell closed 7 years ago
Haha, I doubt it. It's probably for the best because with python virtual environments anything nontrivial begins with a massive installation of a local set of packages. This was my first and last exercise in evaluating packrat and I decided that it was not really what I was looking for.
I know that @cboettig is working on (has worked on) versioned R docker containers going way back and we can probably pull an appropriate R version. I've confirmed that this does not work with 3.1.2:
docker run -it r-base:3.1.2 bash
apt-get update && apt-get install -y curl git
git clone https://github.com/richfitz/wood
cd wood
make packrat-enable
which gives the same error as you were getting
Have some packages broken the workflow? I'd be curious what does not work it's interesting to see code rot in action.
It's dplyr: pipes changed from %.% to %>%
Ah, yes. I remember when that happened. I wish that "tidyverse" included "not breaking the API every version" (I don't think that it's a coincidence that both dplyr and packrat come out of the same company :stuck_out_tongue_closed_eyes:)
I've updated the code to use %>%
(which will break the packrat version of course). I'm getting frequent errors while downloading TPL data; I guess they have set up some sort of rate limiting.
This does compile the ms still. Packrat support looks totally broken as that has changed its API (but in fairness it was experiemental when we tried using it)
Thanks for the ping, actually just been reviving the https://github.com/rocker-org/rocker-versioned images and could use some feedback.
I now have a rocker/tidyverse image that pins the R version and installs the R packages from a fixed MRAN snapshot date, https://hub.docker.com/r/rocker/tidyverse/ . (These images also build on the stable debian release instead of debian:testing which should eliminate some of the apt-get breaking issues that rocker images currently face as debian:testing repos keep chaning. It does mean versions of things like compilers and libraries will be a bit older).
Like @richfitz I've found packrat not my cup of tea for various reasons; though I also haven't used it since it's pre-release days. Anyway, didn't mean to hijack the thread.
Works for me too, now. The reason why I was checking this out is this (@cboettig @dfalster and/or @mwpennell might also be interested). I thought it might be worth throwing the wood project in there as one of the earlier efforts. Or maybe you'd rather do something with a remake
workflow? Any thoughts?
Is there a better tool for this these days?