Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add triplets for r versions 4.3, 4.4 #1403

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions repo2docker/buildpacks/r.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def r_version(self):
"""
# Available versions at https://cran.r-project.org/src/base/
version_map = {
"4.4": "4.4.1",
"4.3": "4.3.3",
"4.2": "4.2.1",
"4.1": "4.1.3",
"4.0": "4.0.5",
Expand Down Expand Up @@ -97,6 +99,9 @@ def r_version(self):
# available. Users can however explicitly specify the full version to get something specific
if r_version in version_map:
r_version = version_map[r_version]
elif len(r_version.split(".")) == 1:
# must have x.y.z version, add .0 for unrecognized (future) R versions
r_version += ".0"

# translate to the full version string
self._r_version = r_version
Expand Down