Skip to content

Commit d13330a

Browse files
minrkyuvipanda
authored andcommitted
resolve unrecognized x.y r versions to x.y.0
R.deb download step requires a full x.y.z version, it will 404 on `r-4.4`
1 parent 8d916f4 commit d13330a

File tree

1 file changed

+3
-0
lines changed
  • repo2docker/buildpacks

1 file changed

+3
-0
lines changed

repo2docker/buildpacks/r.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def r_version(self):
9999
# available. Users can however explicitly specify the full version to get something specific
100100
if r_version in version_map:
101101
r_version = version_map[r_version]
102+
elif len(r_version.split(".")) == 1:
103+
# must have x.y.z version, add .0 for unrecognized (future) R versions
104+
r_version += ".0"
102105

103106
# translate to the full version string
104107
self._r_version = r_version

0 commit comments

Comments
 (0)