I've got a fairly hefty shiny app that I'm wrapping in a docker container for deployment. To save myself the agony of waiting for all the spatial packages to build, I've based my container on rocker/geospatial. This has solved most of my problems, but there are still a whole mess of packages that have specific versions pegged by renv
in the lockfile that don't necessarily match the versions in the base docker image, and thus are still being downloaded on renv::restore()
. Is there some way to get renv
to accept any package that's already installed, even if the versions don't match the ones in the lockfile? Or do I need to figure out which versions of the packages are in the docker image and set my lockfile to use those specific ones? (I can see this potentially being an issue as newer versions of the docker image are released down the line).
Is this just not the way renv
is supposed to work? I'm grateful for any insight. Thanks!