[Lme4-commits] r1576 - in pkg/lme4Eigen: . inst tests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Feb 8 20:19:11 CET 2012


Author: dmbates
Date: 2012-02-08 20:19:11 +0100 (Wed, 08 Feb 2012)
New Revision: 1576

Added:
   pkg/lme4Eigen/inst/tests/
   pkg/lme4Eigen/tests/test-all.R
Modified:
   pkg/lme4Eigen/DESCRIPTION
Log:
Switch the unit tests to the testthat package


Modified: pkg/lme4Eigen/DESCRIPTION
===================================================================
--- pkg/lme4Eigen/DESCRIPTION	2012-02-08 17:37:00 UTC (rev 1575)
+++ pkg/lme4Eigen/DESCRIPTION	2012-02-08 19:19:11 UTC (rev 1576)
@@ -27,7 +27,7 @@
     PKPDmodels,
     MASS,
     MEMSS,
-    RUnit,
+    testthat,
     boot,
     mlmRev
 LazyLoad: yes

Added: pkg/lme4Eigen/tests/test-all.R
===================================================================
--- pkg/lme4Eigen/tests/test-all.R	                        (rev 0)
+++ pkg/lme4Eigen/tests/test-all.R	2012-02-08 19:19:11 UTC (rev 1576)
@@ -0,0 +1,7 @@
+if(require("testthat", quietly = TRUE)) {
+    pkg   <- "lme4Eigen"
+    require(pkg, character.only=TRUE, quietly=TRUE)
+    test_package(pkg)
+} else {
+    print( "package 'testthat' not available, cannot run unit tests" )
+}



More information about the Lme4-commits mailing list