Running ‘testthat.R’ [9s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("gmat")
  > 
  > test_check("gmat")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 487 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_dag.R:24:3'): upper Cholesky factors are of Cholesky ───────────
  Error in `as(object, "dgCMatrix")`: no method or default for coercing "graphNEL" to "dgCMatrix"
  Backtrace:
      ▆
   1. ├─gRbase::topoSort(igraph::as_graphnel(dag), index = TRUE) at test_dag.R:24:2
   2. └─gRbase:::topo_sort.default(igraph::as_graphnel(dag), index = TRUE)
   3.   ├─gRbase::topo_sortMAT(as(object, "dgCMatrix"), index = index)
   4.   │ └─gRbase:::topo_sortMAT_(amat)
   5.   └─methods::as(object, "dgCMatrix")
  ── Error ('test_dag.R:50:3'): the dag structure is preserved ───────────────────
  Error in `as(object, "dgCMatrix")`: no method or default for coercing "graphNEL" to "dgCMatrix"
  Backtrace:
      ▆
   1. └─gmat (local) expect_equal_dag(m = sample[, , 1], dag = dag) at test_dag.R:50:2
   2.   ├─gRbase::topoSort(igraph::as_graphnel(dag), index = TRUE) at test_dag.R:34:4
   3.   └─gRbase:::topo_sort.default(igraph::as_graphnel(dag), index = TRUE)
   4.     ├─gRbase::topo_sortMAT(as(object, "dgCMatrix"), index = index)
   5.     │ └─gRbase:::topo_sortMAT_(amat)
   6.     └─methods::as(object, "dgCMatrix")
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 487 ]
  Error: Test failures
  Execution halted