rocker-org / rocker-versioned2

Run current & prior versions of R using docker. rocker/r-ver, rocker/rstudio, rocker/shiny, rocker/tidyverse, and so on.
https://rocker-project.org
GNU General Public License v2.0
409 stars 173 forks source link

renv/CI focused images with geospatial sysdeps but no packages #311

Open noamross opened 2 years ago

noamross commented 2 years ago

Hi all - a proposal for an additional package in the stack: For projects using renv, especially in the context of CI systems, it's not really needed to have lots of packages pre-installed as they will just be re-installed later in project-specific libraries. What do we think of an image set that has all the system dependencies up through geospatial, but no packages or RStudio installed?

This would be FROM r-ver:*, and I'd make a new install script install_renv_sysdeps.sh which would have all the system dependencies needed.

eddelbuettel commented 2 years ago

I like it. I do the same in the (smaller, more experimental) r-rspm image as "we know" what is missing and add it preemptively whereas this is and will always be the one sore spot and achilles heel of the RSPM packages.

The only possible wrinkle I could think of is that it may interfere with the 'versioned2' ability to install at different time points.

cboettig commented 2 years ago

seems reasonable to me! looks like this could save > 1 GB in unpacked initial image size

eitsupi commented 2 years ago

For this use, it may make more sense to install and manage R with rig. https://github.com/r-lib/rig