Running ‘testthat.R’ [6s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sparsebnUtils)
  > 
  > test_check("sparsebnUtils")
  [ FAIL 4 | WARN 0 | SKIP 3 | PASS 265 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-as.R:7:1): (code run outside of `test_that()`) ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─sparsebnUtils:::generate_fixed_graphNEL() at test-as.R:7:0
   2. └─base::loadNamespace(x) at tests/testthat/helper-sparsebnUtils-generate_objects.R:126:4
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-graphNEL.R:8:1): (code run outside of `test_that()`) ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─sparsebnUtils:::generate_fixed_graphNEL() at test-graphNEL.R:8:0
   2. └─base::loadNamespace(x) at tests/testthat/helper-sparsebnUtils-generate_objects.R:126:4
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-x-compatibility.R:32:9): Coercion works on empty graphs ─────────
  Error: graph package (from BioConductor) required to coerce data to 'graphNEL' type!
  Backtrace:
       ▆
    1. ├─testthat::expect_equivalent(sbf.empty, to_edgeList(to_bn(sbf.empty))) at test-x-compatibility.R:32:8
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─sparsebnUtils::to_edgeList(to_bn(sbf.empty))
    5. ├─sparsebnUtils::to_bn(sbf.empty)
    6. └─sparsebnUtils:::to_bn.sparsebnFit(sbf.empty)
    7.   ├─sparsebnUtils::to_bn(x$edges)
    8.   └─sparsebnUtils:::to_bn.edgeList(x$edges)
    9.     ├─sparsebnUtils::to_bn(to_graphNEL(x))
   10.     └─sparsebnUtils::to_graphNEL(x)
  ── Error (test-x-compatibility.R:108:9): Coercion to bn works ──────────────────
  Error: graph package (from BioConductor) required to coerce data to 'graphNEL' type!
  Backtrace:
      ▆
   1. ├─testthat::expect_is(to_bn(sbf)$edges, "bn") at test-x-compatibility.R:108:8
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─sparsebnUtils::to_bn(sbf)
   5. └─sparsebnUtils:::to_bn.sparsebnFit(sbf)
   6.   ├─sparsebnUtils::to_bn(x$edges)
   7.   └─sparsebnUtils:::to_bn.edgeList(x$edges)
   8.     ├─sparsebnUtils::to_bn(to_graphNEL(x))
   9.     └─sparsebnUtils::to_graphNEL(x)
  
  [ FAIL 4 | WARN 0 | SKIP 3 | PASS 265 ]
  Error: Test failures
  Execution halted