AMR/tests/testthat/test-clipboard.R

14 lines
395 B
R
Raw Normal View History

2018-06-27 15:54:56 +02:00
context("clipboard.R")
test_that("clipboard works", {
skip_if_not(clipr::clipr_available())
clipboard_export(antibiotics)
expect_identical(antibiotics,
2018-06-29 08:56:03 +02:00
clipboard_import(date_format = "yyyy-mm-dd"))
clipboard_export(septic_patients[1:100,])
expect_identical(tbl_parse_guess(septic_patients[1:100,]),
clipboard_import(guess_col_types = TRUE))
2018-06-27 15:54:56 +02:00
})