Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sparsebnUtils)
  > 
  > test_check("sparsebnUtils")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-x-compatibility.R:20:9): Coercion works on empty graphs ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─testthat::expect_equivalent(sbf.empty, to_edgeList(to_graphNEL(sbf.empty))) test-x-compatibility.R:20: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_graphNEL(sbf.empty))
    5. ├─sparsebnUtils::to_graphNEL(sbf.empty)
    6. ├─sparsebnUtils:::to_graphNEL.sparsebnFit(sbf.empty)
    7. │ ├─sparsebnUtils::to_graphNEL(x$edges)
    8. │ └─sparsebnUtils:::to_graphNEL.edgeList(x$edges)
    9. │   └─sparsebnUtils:::to_graphNEL.igraph(to_igraph(x))
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base:::withOneRestart(expr, restarts[[1L]])
   13.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-x-compatibility.R:57:9): Coercion to graphNEL works ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─testthat::expect_is(to_graphNEL(sbf)$edges, "graphNEL") test-x-compatibility.R:57:8
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─sparsebnUtils::to_graphNEL(sbf)
    5. ├─sparsebnUtils:::to_graphNEL.sparsebnFit(sbf)
    6. │ ├─sparsebnUtils::to_graphNEL(x$edges)
    7. │ └─sparsebnUtils:::to_graphNEL.edgeList(x$edges)
    8. │   └─sparsebnUtils:::to_graphNEL.igraph(to_igraph(x))
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-x-compatibility.R:108:9): Coercion to bn works ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─testthat::expect_is(to_bn(sbf)$edges, "bn") 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)
   10. │   └─sparsebnUtils:::to_graphNEL.edgeList(x)
   11. │     └─sparsebnUtils:::to_graphNEL.igraph(to_igraph(x))
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 5 | PASS 285 ]
  Error: Test failures
  Execution halted