Running ‘testthat.R’ [8s/8s]
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)
  + })
  > 
  > test_check("pROC")
  ── 1. Error: plot draws correctly (@test-plot.R#12)  ───────────────────────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:12
  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#24)  ────────────────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:24
  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#46)  ──────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:46
  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#85)  ──────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:85
  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#132)  ─────────
  there is no package called 'vdiffr'
  1: vdiffr::expect_doppelganger at testthat/test-plot.R:132
  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: 5343 SKIPPED: 8 FAILED: 5
  1. Error: plot draws correctly (@test-plot.R#12) 
  2. Error: legacy.axis works correctly (@test-plot.R#24) 
  3. Error: Advanced screenshot 1 works correctly (@test-plot.R#46) 
  4. Error: Advanced screenshot 3 works correctly (@test-plot.R#85) 
  5. Error: Advanced screenshot 6 works correctly (@test-plot.R#132) 
  
  Error: testthat unit tests failed
  Execution halted