AMR/tests/testthat/test-clipboard.R

12 lines
283 B
R
Raw Normal View History

2018-03-27 17:43:42 +02:00
context("clipboard.R")
test_that("clipboard works", {
2018-03-29 13:12:49 +02:00
# why is the <<- needed? Won't work without it...
2018-03-29 14:26:26 +02:00
if (Sys.info()['sysname'] %like% "Windows") {
t1 <<- AMR::antibiotics
clipboard_export(t1, info = FALSE)
t2 <- clipboard_import()
expect_equal(t1, t2)
}
2018-03-27 17:43:42 +02:00
})