[R-pkg-devel] Testing package on R-devel in a docker container
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Mon Aug 11 13:38:38 CEST 2025
On 11 August 2025 at 18:03, Greg Hunt wrote:
| Out of curiosity, why do they install two instances of R in a Docker
| container? On a traditional physical tin server, sure, you can't avoid
| that sort of thing, but why in Docker? I didn't see a rationale for it on
| the Rocker wiki or website.
"They" here. It makes sense to have the underlying base be the r-base
container, and it has R. And because it gets R as a package this is harder to
disentangle afterwards. Also, my live system also has R and RD so I was used
to _explicitly_ opt into r-devel ...
Also note that given how R works an honours its installation path, the
following simple 'ln -s RD R' is all you need to have 'RD' be 'R' on that
container too:
$ docker run --rm -ti rocker/r-devel \
bash -c 'cd /usr/local/bin && ln -s RD R && R --version'
(Line break just for exposition here)
but we don't do that by default because having R as well can be useful.
Dirk
--
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-package-devel
mailing list