Running ‘doRUnit.R’
Running the tests in ‘tests/doRUnit.R’ failed.
Complete output:
  > # Copyright (C) 2010 - 2013  Dirk Eddelbuettel, Romain Francois and Douglas Bates
  > # Copyright (C) 2014 - 2018  Dirk Eddelbuettel
  > # Earlier copyrights Gregor Gorjanc, Martin Maechler and Murray Stokely as detailed below
  > #
  > # This file is part of RcppCCTZ.
  > #
  > # RcppCCTZ is free software: you can redistribute it and/or
  > # modify it under the terms of the GNU General Public License as
  > # published by the Free Software Foundation, either version 2 of the
  > # License, or (at your option) any later version.
  > #
  > # RcppCCTZ is distributed in the hope that it will be useful, but
  > # WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  > # General Public License for more details.
  > #
  > # You should have received a copy of the GNU General Public License
  > # along with RcppCCTZ.  If not, see <http://www.gnu.org/licenses/>.
  > 
  > ## doRUnit.R --- Run RUnit tests
  > ##
  > ## with credits to package fUtilities in RMetrics
  > ## which credits Gregor Gojanc's example in CRAN package  'gdata'
  > ## as per the R Wiki http://wiki.r-project.org/rwiki/doku.php?id=developers:runit
  > ## and changed further by Martin Maechler
  > ## and more changes by Murray Stokely in HistogramTools
  > ## and then used adapted in RProtoBuf
  > ## and now used in Rcpp and here
  > ##
  > ## Dirk Eddelbuettel, Feb - June 2014
  > 
  > if (requireNamespace("RUnit", quietly=TRUE) &&
  +     requireNamespace("RcppCCTZ", quietly=TRUE)) {
  + 
  +     library(RUnit)
  +     library(RcppCCTZ)
  + 
  +     ## Set a seed to make the test deterministic
  +     set.seed(42)
  + 
  +     ## Define tests
  +     testSuite <- defineTestSuite(name="RcppCCTZ Unit Tests",
  +                                  dirs=system.file("unitTests", package = "RcppCCTZ"),
  +                                  testFuncRegexp = "^[Tt]est.+")
  + 
  +     Sys.setenv("R_TESTS"="")	    	# without this, we get (or used to get) unit test failures
  + 
  +     tests <- runTestSuite(testSuite)    # run tests
  +     printTextProtocol(tests)		# print results
  + 
  +     ## Return success or failure to R CMD CHECK
  +     if (getErrors(tests)$nFail > 0) stop("TEST FAILED!")
  +     if (getErrors(tests)$nErr > 0) stop("TEST HAD ERRORS!")
  +     if (getErrors(tests)$nTestFunc < 1) stop("NO TEST FUNCTIONS RUN!")
  + 
  + }
  
  
  Executing test function test.Format.R  ...  done successfully.
  
  
  
  Executing test function test.Parse  ... Timing stopped at: 0.003 0 0.004
  Error in checkEquals(timepoint, pt, msg = "parseDatetime vanilla format") : 
    Mean absolute difference: 1261139044
  parseDatetime vanilla format
   done successfully.
  
  
  
  Executing test function test.toTz  ...  done successfully.
  
  
  
  Executing test function test.tzDiff  ...  done successfully.
  
  RUNIT TEST PROTOCOL -- Fri Oct 12 14:21:41 2018 
  *********************************************** 
  Number of test functions: 4 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  RcppCCTZ Unit Tests - 4 test functions, 0 errors, 1 failure
  FAILURE in test.Parse: Error in checkEquals(timepoint, pt, msg = "parseDatetime vanilla format") : 
    Mean absolute difference: 1261139044
  parseDatetime vanilla format
  
  
  
  Details 
  *************************** 
  Test Suite: RcppCCTZ Unit Tests 
  Test function regexp: ^[Tt]est.+ 
  Test file regexp: ^runit.+\.[rR]$ 
  Involved directory: 
  /data/gannet/ripley/R/packages/tests-clang/RcppCCTZ.Rcheck/RcppCCTZ/unitTests 
  --------------------------- 
  Test file: /data/gannet/ripley/R/packages/tests-clang/RcppCCTZ.Rcheck/RcppCCTZ/unitTests/runit.Format.R 
  test.Format.R: (3 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /data/gannet/ripley/R/packages/tests-clang/RcppCCTZ.Rcheck/RcppCCTZ/unitTests/runit.Parse.R 
  test.Parse: FAILURE !! (check number 1)
  Error in checkEquals(timepoint, pt, msg = "parseDatetime vanilla format") : 
    Mean absolute difference: 1261139044
  parseDatetime vanilla format
  --------------------------- 
  Test file: /data/gannet/ripley/R/packages/tests-clang/RcppCCTZ.Rcheck/RcppCCTZ/unitTests/runit.tz.R 
  test.toTz: (2 checks) ... OK (0 seconds)
  test.tzDiff: (2 checks) ... OK (0 seconds)
  Error: TEST FAILED!
  Execution halted