From d2342a2ac493318607df53f3a836331cac5083b4 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Thu, 13 Jun 2024 09:00:29 -0700 Subject: [PATCH] Skip suite if missing Suggests dependency rgenoud --- tests/testthat/test-GenMatch.R | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testthat/test-GenMatch.R b/tests/testthat/test-GenMatch.R index 5eb080a..c2452c3 100644 --- a/tests/testthat/test-GenMatch.R +++ b/tests/testthat/test-GenMatch.R @@ -1,4 +1,5 @@ test_that("Tests GenMatch", { +skip_if_not_installed("rgenoud") suppressMessages(library(rgenoud)) suppressMessages(library(Matching)) suppressWarnings(RNGversion("3.5.3"))