Just discovered you can create a docker image from for your #rstats project with a one-liner using either the DESCRIPTION file or the `renv` lock file:
3
31
2
188
That is cool. I am now testing @eddelbuettel r2u image to install all dep from binaries. More to come.
1
Yes! Where rspm goes 'broad' (across OSs) we go 'deep' with r2u and integrate fully with apt. So a) you get all depends, no suprises and b) depends are known to the system so no more libicu upgrade breaking stringi etc. #rstats See the r2u site for more: eddelbuettel.github.io/r2u/
1
1
4
We can do this in five lines without `dockerfiler`: FROM eddelbuettel/r2u:22.04 COPY DESCRIPTION /tmp RUN install.r remotes \ && cd /tmp \ && Rscript -e 'remotes::install_deps(".", dependencies=TRUE)' 50 seconds, Depends + Suggests for moderately large package #rstats

Aug 1, 2022 · 2:22 PM UTC

1
1
2
GIF
Will this work with {renv} and its installation of a specific package version ? Like if I use remotes::install_version() ?
2
r2u is at its core an `apt` repo, so `apt install` it is. Via `bspm` it is used by `install.packages()`. Which means all ops NOT using `install.packages()` (i.e. RStudio GUI + internal, renv, rig, ...) do NOT benefit. Similarly, no versioned use of install.packages() either.
2