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
pull/1416/head
YuviPanda 2025-02-18 13:42:01 -08:00
rodzic 1ad76bcbca
commit a9e5a19aee
3 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1 @@
install.packages("digest")

Wyświetl plik

@ -0,0 +1 @@
r-4.3.2-2024-01-10

Wyświetl plik

@ -0,0 +1,13 @@
#!/usr/bin/env Rscript
library('digest')
# Fail if version is not 4.3
print(version)
if (!(version$major == "4" && version$minor == "3")) {
quit("yes", 1)
}
# The date we have chosen should give us an rspm mirror
if (!(startsWith(options()$repos["CRAN"], "https://packagemanager.posit.co"))) {
quit("yes", 1)
}