1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-28 03:26:12 +01:00
AMR/tests/testthat/test-clipboard.R

13 lines
342 B
R
Raw Normal View History

2018-03-27 17:43:42 +02:00
context("clipboard.R")
test_that("clipboard works", {
2018-04-30 16:54:37 +02:00
if (grepl(Sys.info()['sysname'], "windows", ignore.case = TRUE)) {
t1 <<- AMR::antibiotics # why is the <<- needed? Won't work without it...
clipboard_export(t1, info = FALSE)
t2 <- clipboard_import()
expect_equal(t1, t2)
} else {
expect_equal(TRUE, TRUE)
2018-04-02 16:21:03 +02:00
}
2018-03-27 17:43:42 +02:00
})