Check for MRAN differently

pull/1104/head
YuviPanda 2022-01-04 21:50:36 +05:30
rodzic d75c0079ad
commit ffbace3b38
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -4,6 +4,6 @@ library('ggplot2')
print(version)
# Fail if MRAN isn't the configured CRAN mirror
if (!grepl("https://mran.microsoft.com", options()$CRAN, fixed=TRUE)) {
if (!(startsWith(options()$repos["CRAN"], "https://mran.microsoft.com"))) {
quit("yes", 1)
}

Wyświetl plik

@ -8,6 +8,6 @@ if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version
}
# The date we have chosen should give us an MRAN mirror
if (!grepl("https://mran.microsoft.com", options()$CRAN, fixed=TRUE)) {
if (!(startsWith(options()$repos["CRAN"], "https://mran.microsoft.com"))) {
quit("yes", 1)
}
}