Skip to content

Commit

Permalink
Merge pull request #1416 from yuvipanda/runtime
Browse files Browse the repository at this point in the history
Add a test for runtime.txt with full R version specified
  • Loading branch information
minrk authored Feb 21, 2025
2 parents 1ad76bc + 3304921 commit 17a23c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/r/r4.3.2-rspm/install.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install.packages("digest")
1 change: 1 addition & 0 deletions tests/r/r4.3.2-rspm/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
r-4.3.2-2024-01-10
13 changes: 13 additions & 0 deletions tests/r/r4.3.2-rspm/verify
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env Rscript
library('digest')

# Fail if version is not 4.3.2
print(version)
if (!(version$major == "4" && version$minor == "3.2")) {
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)
}

0 comments on commit 17a23c4

Please sign in to comment.