I am using packrat::restore
with a packrat.lock
file to install the package dependencies of my project in a docker container. Whenever I make a change to the packrat.lock
file the packrat::restore
step is reexecuted, instead of taking the cache and all packages are reinstalled, which takes a long time.
I think it would be great to have the opportunity to separate the packrat.lock
file into multiple smaller ones, for example to separate the packages which are essential for my project (e.g. shiny, stringr, data.table...) and packages I might remove again because I am just testing out a new feature. The first packrat.lock
file would change not very often, so I can use the docker cache here, which would significantly speed up by build times.
Interested, what you think about this.