From 11b8fc1ab83c3c7a0ad265365b212adfa0a98b4c Mon Sep 17 00:00:00 2001 From: Yuvi Panda Date: Tue, 18 Feb 2025 14:03:14 -0800 Subject: [PATCH] Fix typo Co-authored-by: Simon Li --- repo2docker/buildpacks/r.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2docker/buildpacks/r.py b/repo2docker/buildpacks/r.py index 02255482..93148a94 100644 --- a/repo2docker/buildpacks/r.py +++ b/repo2docker/buildpacks/r.py @@ -99,7 +99,7 @@ class RBuildPack(PythonBuildPack): # 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: + elif len(r_version.split(".")) == 2: # must have x.y.z version, add .0 for unrecognized (future) R versions r_version += ".0"