Running ‘doRUnit.R’ [11s/12s]
Running the tests in ‘tests/doRUnit.R’ failed.
Complete output:
  > # Adapted from: http://rwiki.sciviews.org/doku.php?id=developers:runit
  > 
  > if( identical( .Platform$OS.type, "windows" ) && identical( .Platform$r_arch, "x64" ) ){
  +   print( "unit tests not run on windows 64 (workaround alert)" )
  + } else {
  +   if(require("RUnit", quietly = TRUE)) {
  +     pkg <- "Rclusterpp"
  + 		if(Sys.getenv("RCMDCHECK") == "FALSE") {
  + 			path <- file.path(getwd(), "..", "inst", "unit_tests")
  + 		} else {
  + 			path <- system.file(package=pkg, "unit_tests")
  + 		}
  + 		cat("\nRunning unit tests:\n")
  + 		print(list(pkg=pkg, getwd=getwd(), pathToUnitTests=path))
  +  
  + 		library(package=pkg, character.only=TRUE)
  + 		
  + 		# Define tests
  + 		testSuite <- defineTestSuite(name=paste(pkg, "unit testing"), dirs=path)
  +   
  + 		# Run
  + 		tests <- runTestSuite(testSuite)
  +  
  + 		# Default report name
  + 		pathReport <- file.path(path, "report")
  +  
  + 		# Report to stdout and text files
  + 		printTextProtocol(tests, showDetails=FALSE)
  + 		printTextProtocol(tests, showDetails=FALSE, fileName=paste(pathReport, "Summary.txt", sep=""))
  + 		printTextProtocol(tests, showDetails=TRUE, fileName=paste(pathReport, ".txt", sep=""))
  +  
  + 		# Report to HTML file
  + 		#printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep=""))
  +  
  + 		# Return stop() to cause R CMD check stop in case of
  + 		#  - failures i.e. FALSE to unit tests or
  + 		#  - errors i.e. R errors
  + 		tmp <- getErrors(tests)
  + 		if(tmp$nFail > 0 | tmp$nErr > 0) {
  + 			stop(paste("\n\nUnit testing failed (#test failures: ", tmp$nFail, ", #R errors: ",  tmp$nErr, ")\n\n", sep=""))
  + 		}
  +               
  +   } else {
  +     print( "package RUnit not available, cannot run unit tests" )
  +   }       
  + }
  
  Running unit tests:
  $pkg
  [1] "Rclusterpp"
  
  $getwd
  [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/Rclusterpp.Rcheck/tests"
  
  $pathToUnitTests
  [1] "/home/hornik/tmp/scratch/Rtmp8lkOLE/RLIBS_91d6d35f75/Rclusterpp/unit_tests"
  
  Loading required package: Rcpp
  Loading required package: RcppEigen
  
  
  Executing test function test.hclust.average.euclidean  ...  done successfully.
  
  
  
  Executing test function test.hclust.average.manhattan  ...  done successfully.
  
  
  
  Executing test function test.hclust.average.maximum  ...  done successfully.
  
  
  
  Executing test function test.hclust.average.minkowski  ...  done successfully.
  
  
  
  Executing test function test.hclust.complete.euclidean  ...  done successfully.
  
  
  
  Executing test function test.hclust.single.euclidean  ...  done successfully.
  
  
  
  Executing test function test.hclust.single.manhattan  ...  done successfully.
  
  
  
  Executing test function test.hclust.single.maximum  ...  done successfully.
  
  
  
  Executing test function test.hclust.single.minkowski  ...  done successfully.
  
  
  
  Executing test function test.hclust.ward  ... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
   done successfully.
  
  
  
  Executing test function test.storedistance.average.euclidean  ...  done successfully.
  
  
  
  Executing test function test.storedistance.average.manhattan  ...  done successfully.
  
  
  
  Executing test function test.storedistance.complete.euclidean  ...  done successfully.
  
  
  
  Executing test function test.storedistance.single.euclidean  ...  done successfully.
  
  RUNIT TEST PROTOCOL -- Sat Mar 24 17:08:13 2018 
  *********************************************** 
  Number of test functions: 14 
  Number of errors: 0 
  Number of failures: 0 
  
   
  1 Test Suite : 
  Rclusterpp unit testing - 14 test functions, 0 errors, 0 failures
  Error in file(file, ifelse(append, "a", "w")) : 
    cannot open the connection
  Calls: printTextProtocol -> cat -> file
  In addition: Warning message:
  In file(file, ifelse(append, "a", "w")) :
    cannot open file '/home/hornik/tmp/scratch/Rtmp8lkOLE/RLIBS_91d6d35f75/Rclusterpp/unit_tests/reportSummary.txt': Read-only file system
  Execution halted