Skip to content

Commit 1ad76bc

Browse files
authored
Merge pull request #1403 from minrk/r-triplets
add triplets for r versions 4.3, 4.4
2 parents 80d186a + a6e9ddf commit 1ad76bc

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

repo2docker/buildpacks/r.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def r_version(self):
6969
"""
7070
# Available versions at https://cran.r-project.org/src/base/
7171
version_map = {
72+
"4.4": "4.4.1",
73+
"4.3": "4.3.3",
7274
"4.2": "4.2.1",
7375
"4.1": "4.1.3",
7476
"4.0": "4.0.5",
@@ -97,6 +99,9 @@ def r_version(self):
9799
# available. Users can however explicitly specify the full version to get something specific
98100
if r_version in version_map:
99101
r_version = version_map[r_version]
102+
elif len(r_version.split(".")) == 2:
103+
# must have x.y.z version, add .0 for unrecognized (future) R versions
104+
r_version += ".0"
100105

101106
# translate to the full version string
102107
self._r_version = r_version

tests/r/r4.0-rspm/runtime.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

tests/r/r4.4-rspm/runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
r-4.4-2025-01-01

tests/r/r4.0-rspm/verify renamed to tests/r/r4.4-rspm/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ library('digest')
33

44
# Fail if version is not 4.0
55
print(version)
6-
if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version$minor) < 1)) {
6+
if (!(version$major == "4" && as.double(version$minor) >= 4 && as.double(version$minor) < 5)) {
77
quit("yes", 1)
88
}
99

0 commit comments

Comments
 (0)