Update test-clipboard.R

This commit is contained in:
MS Berends 2018-03-29 13:12:49 +02:00 committed by GitHub
parent 2f4823f7a7
commit 339b445a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -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)
})