Support R 4.1
MODIFY
repo2docker/buildpacks/r.py
repo2docker/buildpacks/r.py
@@ -77,6 +77,7 @@ class RBuildPack(PythonBuildPack):
"3.6.1": "3.6.1-3bionic",
"4.0": "4.0.2-1.1804.0",
"4.0.2": "4.0.2-1.1804.0",
+ "4.1": "4.1.2-1.1804.0",
}
# the default if nothing is specified
r_version = "3.6"

MODIFY
tests/r/r4/runtime.txt
tests/r/r4/runtime.txt
-r-4.0-2020-07-07
+r-4.1-2021-07-07

MODIFY
tests/r/r4/verify
tests/r/r4/verify
library('ggplot2')
print(version)
-if (version$major != "4") {
+if (version$major != "4" and as.double(version$minor) >= 1) {
quit("yes", 1)
}

Support R 4.1