From 87917987a4635445e62f59bdec0880e307ebba36 Mon Sep 17 00:00:00 2001 From: Matthew Lincoln Date: Mon, 16 Sep 2024 19:27:16 -0700 Subject: [PATCH] skip tests if clipr is not available (like on CRAN) --- tests/testthat/test-sizes.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testthat/test-sizes.R b/tests/testthat/test-sizes.R index bd0c7ac..fec3ef9 100644 --- a/tests/testthat/test-sizes.R +++ b/tests/testthat/test-sizes.R @@ -9,5 +9,7 @@ mirror <- function(length) { } test_that("large sizes of content can be copied losslessly", { + skip_if_not(is_clipr_available, skip_msg) + lapply(10^(1:8), mirror) })