From ffbace3b381ff207bea0ed755e277dbbffd80492 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 4 Jan 2022 21:50:36 +0530 Subject: [PATCH] Check for MRAN differently --- tests/r/mran/verify | 2 +- tests/r/r4.0/verify | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/r/mran/verify b/tests/r/mran/verify index 45ee78fb..91255706 100755 --- a/tests/r/mran/verify +++ b/tests/r/mran/verify @@ -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) } diff --git a/tests/r/r4.0/verify b/tests/r/r4.0/verify index 37009309..8c012c12 100755 --- a/tests/r/r4.0/verify +++ b/tests/r/r4.0/verify @@ -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) -} +} \ No newline at end of file