Update R-base R version

Hi,

Would it be possible to update docker image openanalytics/r-base with the most recent version of R?

Many thanks in advance!

Hi there,
You can actually build your own, following the approach shown at https://github.com/openanalytics/r-base

Essentially, build the R base image first using the Dockerfile, as you would with any other Dockerfile, but edit the deb address:

RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/" > /etc/apt/sources.list.d/cran.list

(I use Ubuntu: https://cran.r-project.org/bin/linux/ubuntu/README.html)

and the environment and label…

ENV R_BASE_VERSION 4.0.0
LABEL version=4.0.0

Name the Dockerfile (e.g. r/base40) and store in an appropriate location when you build it, then you can build your own image, by changing the FROM line… for example…

FROM r/base40

Hope this helps. I’m no expert at Docker, but this worked for me.

Will

Hey Will,

Thanks for your reply. This is more or less what I’ve also done in the end.
But still it would be great if openanalytics could update it because their templates are based on the old image and some packages could no longer be installed because of outdated version of R.

Yep, I definitely agree it would be great to get everything updated more regularly. I rely on Open Analytics ShinyProxy!

@klm @WillP

A new version of openanalytics/r-base(R 4.0.2) is now available on Docker Hub (based on this Github repo).

Thanks for the suggestion!

Best,
Tobias