From cdc93bf61f35bd49b69d4ae6c331e5d45bf1a4a9 Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:40:36 +0000 Subject: [PATCH] test conditionally --- tests/testthat/test-parallel.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testthat/test-parallel.R b/tests/testthat/test-parallel.R index 7833d73a..f1add1dc 100644 --- a/tests/testthat/test-parallel.R +++ b/tests/testthat/test-parallel.R @@ -1,3 +1,6 @@ +skip_if_not_installed("mirai") +skip_if_not_installed("carrier") + test_that("Can't parallel map without first setting daemons", { expect_snapshot(error = TRUE, { map(list(x = 1, y = 2), list, .parallel = TRUE)