Skip to content

Commit 17a23c4

Browse files
authored
Merge pull request #1416 from yuvipanda/runtime
Add a test for runtime.txt with full R version specified
2 parents 1ad76bc + 3304921 commit 17a23c4

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.2
5+
print(version)
6+
if (!(version$major == "4" && version$minor == "3.2")) {
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)