Running ‘testthat.R’ [13s/14s]
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. Error: plot draws correctly (@test-plot.R#13)  ───────────────────────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:13
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 2. Error: legacy.axis works correctly (@test-plot.R#25)  ────────────────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:25
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 3. Error: Advanced screenshot 1 works correctly (@test-plot.R#47)  ──────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:47
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 4. Error: Advanced screenshot 3 works correctly (@test-plot.R#86)  ──────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:86
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 5. Error: Advanced screenshot 6 works correctly (@test-plot.R#133)  ─────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:133
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 6744 SKIPPED: 14 FAILED: 5
  1. Error: plot draws correctly (@test-plot.R#13) 
  2. Error: legacy.axis works correctly (@test-plot.R#25) 
  3. Error: Advanced screenshot 1 works correctly (@test-plot.R#47) 
  4. Error: Advanced screenshot 3 works correctly (@test-plot.R#86) 
  5. Error: Advanced screenshot 6 works correctly (@test-plot.R#133) 
  
  Error: testthat unit tests failed
  Execution halted