diff --git a/tests/testthat/test-clipboard.R b/tests/testthat/test-clipboard.R index 9d025bdb..3385f15a 100644 --- a/tests/testthat/test-clipboard.R +++ b/tests/testthat/test-clipboard.R @@ -1,11 +1,9 @@ context("clipboard.R") test_that("clipboard works", { - # why is the <<- needed? Won't work without it... - if (Sys.info()['sysname'] %like% "Windows") { - t1 <<- AMR::antibiotics - clipboard_export(t1, info = FALSE) - t2 <- clipboard_import() - expect_equal(t1, t2) - } + skip_on_os(c("linux", "solaris")) + t1 <<- AMR::antibiotics # why is the <<- needed? Won't work without it... + clipboard_export(t1, info = FALSE) + t2 <- clipboard_import() + expect_equal(t1, t2) })