Running ‘RQuantlib.R’ [1s/1s]
  Comparing ‘RQuantlib.Rout’ to ‘RQuantlib.Rout.save’ ... OK
  Running ‘doRUnit.R’ [14s/14s]
Running the tests in ‘tests/doRUnit.R’ failed.
Complete output:
  > ## 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 
  > ##
  > ## (Initially) inAdapted for RQuantLib by Dirk Eddelbuettel, 29 Dec 2007
  > 
  > stopifnot(require(RUnit, quietly=TRUE))
  > stopifnot(require(RQuantLib, quietly=TRUE))
  > 
  > ## Define tests
  > testSuite <- defineTestSuite(name="RQuantLib Unit Tests",
  +                              dirs=system.file("unitTests", package = "RQuantLib"),
  +                              testFuncRegexp = "^[Tt]est.+")
  > 
  > ## without this, we get (or used to get) unit test failures
  > Sys.setenv("R_TESTS"="")
  > 
  > ## Run tests
  > tests <- runTestSuite(testSuite)
  
  
  Executing test function test.HalfMonthModifiedFollowing  ...  done successfully.
  
  
  
  Executing test function test.Nearest  ...  done successfully.
  
  
  
  Executing test function test.isBusinessDay  ...  done successfully.
  
  
  
  Executing test function test.isHoliday  ...  done successfully.
  
  
  
  Executing test function test.date.conversion  ... Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RQuantLib")) : 
    file io error: '/tmp/RtmpHBG6jq/sourceCpp-x86_64-pc-linux-gnu-0.12.14/sourcecpp_62613a90f04/dates.cpp'
  
  
  Executing test function test.datevector.conversion  ... Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RQuantLib")) : 
    file io error: '/tmp/RtmpHBG6jq/sourceCpp-x86_64-pc-linux-gnu-0.12.14/sourcecpp_62652b2196c/dates.cpp'
  
  
  Executing test function test.american.Haug  ...  done successfully.
  
  
  
  Executing test function test.asian  ...  done successfully.
  
  
  
  Executing test function test.barrier  ...  done successfully.
  
  
  
  Executing test function test.barrier.Haug  ...  done successfully.
  
  
  
  Executing test function test.binary  ...  done successfully.
  
  
  
  Executing test function test.discreteDividend.Hull  ...  done successfully.
  
  
  
  Executing test function test.european.Haug  ...  done successfully.
  
  
  
  Executing test function test.CDS  ...  done successfully.
  
  
  
  Executing test function test.Schedule  ...  done successfully.
  
  > 
  > ## Print results
  > printTextProtocol(tests)
  RUNIT TEST PROTOCOL -- Sun Dec 24 17:46:57 2017 
  *********************************************** 
  Number of test functions: 15 
  Number of errors: 2 
  Number of failures: 0 
  
   
  1 Test Suite : 
  RQuantLib Unit Tests - 15 test functions, 2 errors, 0 failures
  ERROR in .setUp (before test.date.conversion): Error executing .setUp before test.date.conversion : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RQuantLib")) : 
    file io error: '/tmp/RtmpHBG6jq/sourceCpp-x86_64-pc-linux-gnu-0.12.14/sourcecpp_62613a90f04/dates.cpp'
  ERROR in .setUp (before test.datevector.conversion): Error executing .setUp before test.datevector.conversion : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RQuantLib")) : 
    file io error: '/tmp/RtmpHBG6jq/sourceCpp-x86_64-pc-linux-gnu-0.12.14/sourcecpp_62652b2196c/dates.cpp'
  
  
  
  Details 
  *************************** 
  Test Suite: RQuantLib Unit Tests 
  Test function regexp: ^[Tt]est.+ 
  Test file regexp: ^runit.+\.[rR]$ 
  Involved directory: 
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RQuantLib/unitTests 
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RQuantLib/unitTests/runit.businessdayconvention.R 
  test.HalfMonthModifiedFollowing: (7 checks) ... OK (0.02 seconds)
  test.Nearest: (6 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RQuantLib/unitTests/runit.calendar.R 
  test.isBusinessDay: (1 checks) ... OK (0 seconds)
  test.isHoliday: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RQuantLib/unitTests/runit.dates.R 
  .setUp (before test.date.conversion): ERROR !! 
  Error executing .setUp before test.date.conversion : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RQuantLib")) : 
    file io error: '/tmp/RtmpHBG6jq/sourceCpp-x86_64-pc-linux-gnu-0.12.14/sourcecpp_62613a90f04/dates.cpp'
  .setUp (before test.datevector.conversion): ERROR !! 
  Error executing .setUp before test.datevector.conversion : Error in sourceCpp(system.file("unitTests", "cpp", file, package = "RQuantLib")) : 
    file io error: '/tmp/RtmpHBG6jq/sourceCpp-x86_64-pc-linux-gnu-0.12.14/sourcecpp_62652b2196c/dates.cpp'
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RQuantLib/unitTests/runit.options.R 
  test.american.Haug: (36 checks) ... OK (0.01 seconds)
  test.asian: (31 checks) ... OK (12.57 seconds)
  test.barrier: (3 checks) ... OK (0 seconds)
  test.barrier.Haug: (72 checks) ... OK (0.02 seconds)
  test.binary: (2 checks) ... OK (0 seconds)
  test.discreteDividend.Hull: (2 checks) ... OK (0 seconds)
  test.european.Haug: (43 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RQuantLib/unitTests/runit.schedule.R 
  test.CDS: (1 checks) ... OK (0 seconds)
  test.Schedule: (8 checks) ... OK (0.06 seconds)
  > 
  > ## 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!")
  + }
  Error: TEST HAD ERRORS!
  Execution halted