Running ‘doRUnit.R’ [2s/2s]
Running the tests in ‘tests/doRUnit.R’ failed.
Complete output:
  > #### doRUnit.R --- Run RUnit tests
  > ####------------------------------------------------------------------------
  > 
  > ### Originally follows Gregor Gojanc's example in CRAN package  'gdata'
  > ### and the corresponding section in the R Wiki:
  > ###  http://wiki.r-project.org/rwiki/doku.php?id=developers:runit
  > 
  > ### MM: Vastly changed:  This should also be "runnable" for *installed*
  > ##              package which has no ./tests/
  > ## ----> put the bulk of the code e.g. in  ../inst/unitTests/runTests.R :
  > 
  > ### DJS: Added the possibility of different testing levels
  > ### environment variable LEVEL set by make
  > ### default value of 1 is level used in check and install
  > 
  > if(require("RUnit", quietly=TRUE)) {
  + 
  +   ## --- Setup ---
  + 
  +   wd <- getwd()
  +   pkg <- sub("\\.Rcheck$", '', basename(dirname(wd)))
  +   level <- Sys.getenv("LEVEL")
  + 
  +   library(package=pkg, character.only=TRUE)
  +   cat("value of pkg is ",pkg,"\n\n")
  + 
  +   path <- system.file("unitTests", package = pkg)
  + 
  +   stopifnot(file.exists(path), file.info(path.expand(path))$isdir)
  + 
  +   source(file.path(path, "runTests.R"), echo = TRUE)
  + }
  value of pkg is  DistributionUtils 
  
  
  > if (require("RUnit", quietly = TRUE)) {
  +     if (Sys.getenv("RCMDCHECK") == "FALSE") {
  +         level <- Sys.getenv("LEVEL")
  +         pkg <- Sys. .... [TRUNCATED] 
  
  
  Executing test function test.besselRatio  ...  done successfully.
  
  
  
  Executing test function test.distIneqMassart  ... Timing stopped at: 0.108 0 0.108
  Error in checkTrue(distIneqMassart("gamma", shape = 1)$check) : 
    Test not TRUE
  
   done successfully.
  
  
  
  Executing test function test.incompleteBesselK  ...  done successfully.
  
  
  
  Executing test function test.integrateDens  ...  done successfully.
  
  
  
  Executing test function test.inversionTestpq  ...  done successfully.
  
  
  
  Executing test function test.inversionTestqp  ...  done successfully.
  
  
  
  Executing test function test.is.wholenumber  ...  done successfully.
  
  
  
  Executing test function test.momChangeAbout  ...  done successfully.
  
  
  
  Executing test function test.momIntegrated  ...  done successfully.
  
  
  
  Executing test function test.momSE  ...  done successfully.
  
  
  
  Executing test function test.safeIntegrate  ...  done successfully.
  
  
  
  Executing test function test.sampleMoments  ...  done successfully.
  
  
  
  Executing test function test.tsHessian  ...  done successfully.
  
  [1] "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/DistributionUtils/unitTests/report"
  RUNIT TEST PROTOCOL -- Mon Sep  4 04:43:47 2017 
  *********************************************** 
  Number of test functions: 13 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  DistributionUtils unit testing - 13 test functions, 0 errors, 1 failure
  FAILURE in test.distIneqMassart: Error in checkTrue(distIneqMassart("gamma", shape = 1)$check) : 
    Test not TRUE
  
  Error in eval(ei, envir) : 
  
  unit testing failed (#test failures: 1, R errors: 0)
  
  Calls: source -> withVisible -> eval -> eval
  In addition: There were 50 or more warnings (use warnings() to see the first 50)
  Execution halted