mirror of
https://github.com/msberends/AMR.git
synced 2024-12-25 18:46:11 +01:00
Update test-clipboard.R
This commit is contained in:
parent
2f4823f7a7
commit
339b445a30
@ -1,11 +1,9 @@
|
||||
context("clipboard.R")
|
||||
|
||||
test_that("clipboard works", {
|
||||
if (Sys.info()['sysname'] == "Windows") {
|
||||
# why is the <<- needed? Won't work without it...
|
||||
t1 <<- AMR::antibiotics
|
||||
clipboard_export(t1, info = FALSE)
|
||||
t2 <- clipboard_import()
|
||||
expect_equal(t1, t2)
|
||||
}
|
||||
# why is the <<- needed? Won't work without it...
|
||||
t1 <<- AMR::antibiotics
|
||||
clipboard_export(t1, info = FALSE)
|
||||
t2 <- clipboard_import()
|
||||
expect_equal(t1, t2)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user