repo2docker/tests/r/r4.0-rspm/verify

14 wiersze
358 B
R
Executable File

#!/usr/bin/env Rscript
library('digest')
# Fail if version is not 4.0
print(version)
if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version$minor) < 1)) {
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)
}