Running ‘testthat.R’ [6s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sparsebnUtils)
  > 
  > test_check("sparsebnUtils")
  ── 1. Error: (unknown) (@test-as.R#7)  ─────────────────────────────────────────
  there is no package called 'graph'
  Backtrace:
   1. sparsebnUtils:::generate_fixed_graphNEL()
   2. graph::graphNEL /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sparsebnUtils.Rcheck/tests/helper-sparsebnUtils-generate_objects.R:126:4
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: (unknown) (@test-graphNEL.R#8)  ───────────────────────────────────
  there is no package called 'graph'
  Backtrace:
   1. sparsebnUtils:::generate_fixed_graphNEL()
   2. graph::graphNEL /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sparsebnUtils.Rcheck/tests/helper-sparsebnUtils-generate_objects.R:126:4
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: Coercion works on empty graphs (@test-x-compatibility.R#32)  ──────
  graph package (from BioConductor) required to coerce data to 'graphNEL' type!
  Backtrace:
    1. testthat::expect_equivalent(sbf.empty, to_edgeList(to_bn(sbf.empty)))
    6. sparsebnUtils:::to_bn.sparsebnFit(sbf.empty)
    8. sparsebnUtils:::to_bn.edgeList(x$edges)
   10. sparsebnUtils::to_graphNEL(x)
  
  ── 4. Error: Coercion to bn works (@test-x-compatibility.R#108)  ───────────────
  graph package (from BioConductor) required to coerce data to 'graphNEL' type!
  Backtrace:
   1. testthat::expect_is(to_bn(sbf)$edges, "bn")
   5. sparsebnUtils:::to_bn.sparsebnFit(sbf)
   7. sparsebnUtils:::to_bn.edgeList(x$edges)
   9. sparsebnUtils::to_graphNEL(x)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 265 | SKIPPED: 3 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: (unknown) (@test-as.R#7) 
  2. Error: (unknown) (@test-graphNEL.R#8) 
  3. Error: Coercion works on empty graphs (@test-x-compatibility.R#32) 
  4. Error: Coercion to bn works (@test-x-compatibility.R#108) 
  
  Error: testthat unit tests failed
  Execution halted