Skip to content

Commit a9e5a19

Browse files
committed
Add a test for runtime.txt with full R version specified
Catching possible errors as reported in https://discourse.jupyter.org/t/error-in-mybinder-org-there-is-no-package-called-irkernel/32478/13. The other tests only specify x.y, not x.y.z
1 parent 1ad76bc commit a9e5a19

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tests/r/r4.3.2-rspm/install.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
install.packages("digest")

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
r-4.3.2-2024-01-10

tests/r/r4.3.2-rspm/verify

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env Rscript
2+
library('digest')
3+
4+
# Fail if version is not 4.3
5+
print(version)
6+
if (!(version$major == "4" && version$minor == "3")) {
7+
quit("yes", 1)
8+
}
9+
10+
# The date we have chosen should give us an rspm mirror
11+
if (!(startsWith(options()$repos["CRAN"], "https://packagemanager.posit.co"))) {
12+
quit("yes", 1)
13+
}

0 commit comments

Comments
 (0)