Bump default R version to 4.2
Been out for a bit now
MODIFY
repo2docker/buildpacks/r.py
repo2docker/buildpacks/r.py
@@ -75,7 +75,7 @@ class RBuildPack(PythonBuildPack):
# the default if nothing is specified
# Use full version is needed here, so it a valid semver
- r_version = version_map["4.1"]
+ r_version = version_map["4.2"]
if not hasattr(self, "_r_version"):
parts = self.runtime.split("-")

MODIFY
tests/r/simple/verify
tests/r/simple/verify
#!/usr/bin/env Rscript
library('testthat')
-# Fail if version is not 4.1
-if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
+# Fail if version is not 4.2
+if (!(version$major == "4" && as.double(version$minor) >= 2 && as.double(version$minor) < 3)) {
quit("yes", 1)
}
\ No newline at end of file

Bump default R version to 4.2

Been out for a bit now