From 1b3cc41c08ad1aba13dd25af8c7a45940a9cacdc Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Tue, 27 Mar 2018 17:58:46 +0200 Subject: [PATCH] fix tests --- DESCRIPTION | 2 +- tests/testthat/Rplots.pdf | Bin 4854 -> 4854 bytes tests/testthat/test-clipboard.R | 12 +++++++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 32b2b224..e03a4340 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -25,7 +25,7 @@ Description: Functions to simplify the analysis of Antimicrobial Resistance (AMR on antibiograms according to Leclercq (2013) . Depends: R (>= 3.0) -Imports: dplyr (>= 0.7.0), knitr, reshape2 (>= 1.4.0), xml2, rvest +Imports: dplyr (>= 0.7.0), reshape2 (>= 1.4.0), xml2, rvest Suggests: testthat URL: https://cran.r-project.org/package=AMR BugReports: https://github.com/msberends/AMR/issues diff --git a/tests/testthat/Rplots.pdf b/tests/testthat/Rplots.pdf index e73617d64e40efcf71003eb808339c26b3044b7a..386c286569bd371760beb3e3834de545c8023fb1 100644 GIT binary patch delta 23 bcmeyS`b~9$HH)dKslh~h2{64edbSV%U`Gc@ delta 23 bcmeyS`b~9$HH)#iso6w(2{64edbSV%V6O*N diff --git a/tests/testthat/test-clipboard.R b/tests/testthat/test-clipboard.R index 30123564..9fa622aa 100644 --- a/tests/testthat/test-clipboard.R +++ b/tests/testthat/test-clipboard.R @@ -1,9 +1,11 @@ context("clipboard.R") test_that("clipboard works", { - # why is the <<- needed? Won't work without it... - t1 <<- AMR::antibiotics - clipboard_export(t1, info = FALSE) - t2 <- clipboard_import() - expect_equal(t1, t2) + 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) + } })