Repo2docker: pinning the R version to an MRAN date

Created on 22 Feb 2018  Â·  9Comments  Â·  Source: jupyterhub/repo2docker

Could the version of R installed gets tied to the MRAN snapshot with the data specified in runtime.txt as well? Right now with the method for builds without using a Dockerfile, the version of R installed is pinned to one date, see https://github.com/jupyter/repo2docker/blob/master/repo2docker/buildpacks/r.py#L132 .

In contrast, Bioconductor releases are tied to certain versions of R. This can be seen from past and present release notes:

Note from an older release

"The current release of Bioconductor is version 3.4; it works with R version 3.3.1. Users of older R and Bioconductor users must update their installation to take advantage of new features and to access packages that have been added to Bioconductor since the last release."

(Source of similar information still accessible here)

Current release note:

"The current release of Bioconductor is version 3.6; it works with R version 3.4.3. Users of older R and Bioconductor must update their installation to take advantage of new features and to access packages that have been added to Bioconductor since the last release."

And so if somone wants to run the packages associated with a particular past Bioconductor release as they were, they'd need the specific version of R.

I don't know if it would be best to also pin the RStudio version as well or not?

enhancement discussion reproducibility

All 9 comments

Thanks for raising the questions here. Any other R folks that have thoughts on this?

We should definitely do this! It's a matter of figuring out how to install
different versions of R easily without having to compile them ourselves
(for performance reasons).

On Tue, Mar 13, 2018 at 12:53 PM, Carol Willing notifications@github.com
wrote:

Thanks for raising the questions here. Any other R folks that have
thoughts on this?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jupyter/repo2docker/issues/245#issuecomment-372796729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB23lK0YBJeaQWsIVoSxvgj2_iUwvNyks5teCOmgaJpZM4SP0Yo
.

--
Yuvi Panda T
http://yuvi.in/blog

I think this is already a feature- can we close? @choldgraf ?

This isn't implemented yet, unfortunately. Setting the MRAN date only sets the version of libraries being installed, not R itself.

Using runtime.txt does not influence what version of R will be installed, only what version of the R packages.

Maybe it helps to take a look at what the Rocker folks are doing?

https://github.com/rocker-org/rocker-versioned

As an example, this gets you R version 3.3.0:

https://github.com/rocker-org/rocker-versioned/blob/master/r-ver/3.3.0/Dockerfile
(Look for R_VERSION=${R_VERSION:-3.3.0})

772 should close this (going back as far as R 3.4).

Also, the rocker/binder image has older versions if a user adds a Dockerfile to the repo.

@betatim Just came across this.. can be closed, right?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

betatim picture betatim  Â·  6Comments

betatim picture betatim  Â·  6Comments

davidanthoff picture davidanthoff  Â·  3Comments

nuest picture nuest  Â·  5Comments

HeidiSeibold picture HeidiSeibold  Â·  4Comments