[Dplr-commits] r1060 - in pkg/dplR: . tests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Feb 20 12:35:55 CET 2017


Author: mvkorpel
Date: 2017-02-20 12:35:55 +0100 (Mon, 20 Feb 2017)
New Revision: 1060

Modified:
   pkg/dplR/DESCRIPTION
   pkg/dplR/tests/testthat.R
Log:
Make "testthat" tests conditional on availability of the package


Modified: pkg/dplR/DESCRIPTION
===================================================================
--- pkg/dplR/DESCRIPTION	2017-02-17 08:10:22 UTC (rev 1059)
+++ pkg/dplR/DESCRIPTION	2017-02-20 11:35:55 UTC (rev 1060)
@@ -3,7 +3,7 @@
 Type: Package
 Title: Dendrochronology Program Library in R
 Version: 1.6.6
-Date: 2017-02-17
+Date: 2017-02-20
 Authors at R: c(person("Andy", "Bunn", role = c("aut", "cph",
         "cre", "trl"), email = "andy.bunn at wwu.edu"), person("Mikko",
         "Korpela", role = c("aut", "trl")), person("Franco", "Biondi",

Modified: pkg/dplR/tests/testthat.R
===================================================================
--- pkg/dplR/tests/testthat.R	2017-02-17 08:10:22 UTC (rev 1059)
+++ pkg/dplR/tests/testthat.R	2017-02-20 11:35:55 UTC (rev 1060)
@@ -1,2 +1,3 @@
-library(testthat)
-test_check("dplR")
+if (require("testthat", character.only = TRUE)) {
+    test_check("dplR")
+}



More information about the Dplr-commits mailing list