Open brendanf opened 5 years ago
I wish I had the solution, but the same thing just happened to my project using R 3.5.2
and packrat 0.5.0
.
In my case I installed a package called ggfan
which imports rstan
. I have to commit the packrat package library directories to my git repo due to an internal pipeline requirement, and I had to set rstan
to external since compiling it from source brings a whopping 220 MB complied .so file, which can't be committed to GitHub due to size restrictions. Now I am trying to add new packages to the packrat lib but I am also getting the unable to retrieve package records error for rstan
. This is driving me pretty bonkers!
I'm using
packrat
0.5.0 and R 3.5.0. It seems like installing a package to the packrat library which depends on a package which has been declared "external" causes an error on the next snapshot.Starting in an empty project directory:
I ran the debugger on
snapshot()
. There is a call togetPackageRecordsExternalSource()
whose name suggests it should be taking care of finding the package records for external sources... but it is passed the packrat library directory (packrat/lib/<architecture>/<version>
) instead of the external package library directory (packrat/lib-ext/<architecture>/<library>
) aslib.loc
, so of course it can't find them.Does this work for anyone?