Running ‘testthat.R’ [16s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pROC)
  Type 'citation("pROC")' for a citation.
  
  Attaching package: 'pROC'
  
  The following objects are masked from 'package:stats':
  
      cov, smooth, var
  
  > data(aSAH)
  > 
  > 
  > # Set environment variable RUN_SLOW_TESTS to run the slower tests
  > run_slow_tests <- identical(Sys.getenv("RUN_SLOW_TESTS"), "true")
  > 
  > 
  > test_that("We can build basic ROC curves", {
  + 	# These curves will be re-used throughout the tests
  + 	r.wfns <<- roc(aSAH$outcome, aSAH$wfns, quiet = TRUE)
  + 	r.ndka <<- roc(aSAH$outcome, aSAH$ndka, quiet = TRUE)
  + 	r.s100b <<- roc(aSAH$outcome, aSAH$s100b, quiet = TRUE)
  + 	r.wfns.percent <<- roc(aSAH$outcome, aSAH$wfns, percent = TRUE, quiet = TRUE)
  + 	r.ndka.percent <<- roc(aSAH$outcome, aSAH$ndka, percent = TRUE, quiet = TRUE)
  + 	r.s100b.percent <<- roc(aSAH$outcome, aSAH$s100b, percent = TRUE, quiet = TRUE)
  + 	
  + 	r.wfns.partial1 <<- roc(aSAH$outcome, aSAH$wfns, quiet = TRUE, partial.auc = c(0.9, 0.99))
  + 	r.ndka.partial1 <<- roc(aSAH$outcome, aSAH$ndka, quiet = TRUE, partial.auc = c(0.9, 0.99))
  + 	r.s100b.partial1 <<- roc(aSAH$outcome, aSAH$s100b, quiet = TRUE, partial.auc = c(0.9, 0.99))
  + 	r.wfns.percent.partial1 <<- roc(aSAH$outcome, aSAH$wfns, percent = TRUE, quiet = TRUE, partial.auc = c(90, 99))
  + 	r.ndka.percent.partial1 <<- roc(aSAH$outcome, aSAH$ndka, percent = TRUE, quiet = TRUE, partial.auc = c(90, 99))
  + 	r.s100b.percent.partial1 <<- roc(aSAH$outcome, aSAH$s100b, percent = TRUE, quiet = TRUE, partial.auc = c(90, 99))
  + })
  > 
  > test_check("pROC")
  ── 1. Failure: microbenchmark works (@test-roc.R#143)  ─────────────────────────
  `r <- roc\(aSAH\$outcome, aSAH\$wfns, algorithm = 0\)` does not match "Selecting algorithm 3".
  Actual value: "Starting benchmark of algorithms 2 and 3, 10 iterations\.\.\.\\n  expr     min      lq      mean   median      uq       max neval\\n1    2 823\.515 834\.691  881\.8048 837\.3710 908\.805  1089\.152    10\\n2    3  40\.400  48\.884 1671\.2538  67\.9935  85\.286 16059\.883    10\\nSelecting algorithm 2\."
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 6743 SKIPPED: 21 FAILED: 1
  1. Failure: microbenchmark works (@test-roc.R#143) 
  
  Error: testthat unit tests failed
  Execution halted