Running ‘testthat.R’ [7s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("gmat")
  > 
  > test_check("gmat")
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 245 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_dag.R:24:3'): upper Cholesky factors are of Cholesky ───────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gRbase::topoSort(igraph::as_graphnel(dag), index = TRUE) at test_dag.R:24:2
   2. ├─igraph::as_graphnel(dag)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_dag.R:50:3'): the dag structure is preserved ───────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  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. │ └─igraph::as_graphnel(dag)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_spdcor.R:18:5'): the size of the sample is correct ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat (local) f(N = N) at test_spdcor.R:18:4
   2. │ └─gmat::ug_to_dag(ug)
   3. │   ├─gRbase::triangulate(igraph::as_graphnel(ug))
   4. │   └─igraph::as_graphnel(ug)
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base (local) withOneRestart(expr, restarts[[1L]])
   8.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_spdcor.R:27:5'): matrix dimension is correct ───────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat (local) f(p = p) at test_spdcor.R:27:4
   2. │ └─gmat::ug_to_dag(ug)
   3. │   ├─gRbase::triangulate(igraph::as_graphnel(ug))
   4. │   └─igraph::as_graphnel(ug)
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base (local) withOneRestart(expr, restarts[[1L]])
   8.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_spdcor.R:45:5'): matrices are symmetric positive definite ──────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat (local) f(p = p) at test_spdcor.R:45:4
   2. │ └─gmat::ug_to_dag(ug)
   3. │   ├─gRbase::triangulate(igraph::as_graphnel(ug))
   4. │   └─igraph::as_graphnel(ug)
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base (local) withOneRestart(expr, restarts[[1L]])
   8.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_spdcor.R:88:5'): matrices are of correlation ───────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat (local) f(p = p) at test_spdcor.R:88:4
   2. │ └─gmat::ug_to_dag(ug)
   3. │   ├─gRbase::triangulate(igraph::as_graphnel(ug))
   4. │   └─igraph::as_graphnel(ug)
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base (local) withOneRestart(expr, restarts[[1L]])
   8.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_ug.R:38:3'): the graph structure is preserved ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat::port_chol(ug = ug) at test_ug.R:38:2
   2. │ └─gmat::ug_to_dag(ug)
   3. │   ├─gRbase::triangulate(igraph::as_graphnel(ug))
   4. │   └─igraph::as_graphnel(ug)
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base (local) withOneRestart(expr, restarts[[1L]])
   8.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_utils.R:73:3'): the dag orientation of an ug is actually a dag ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat::ug_to_dag(ug = ug) at test_utils.R:73:2
   2. │ ├─gRbase::triangulate(igraph::as_graphnel(ug))
   3. │ └─igraph::as_graphnel(ug)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_utils.R:88:3'): the skeleton of the oriented dag is chordal ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat::ug_to_dag(ug = ug) at test_utils.R:88:2
   2. │ ├─gRbase::triangulate(igraph::as_graphnel(ug))
   3. │ └─igraph::as_graphnel(ug)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_utils.R:99:3'): the skeleton of the oriented dag contains the original ug, keeping
  the order ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat::ug_to_dag(ug = ug) at test_utils.R:99:2
   2. │ ├─gRbase::triangulate(igraph::as_graphnel(ug))
   3. │ └─igraph::as_graphnel(ug)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_utils.R:114:3'): the oriented dag does not contain v-structures ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'graph'
  Backtrace:
      ▆
   1. ├─gmat::ug_to_dag(ug = ug) at test_utils.R:114:2
   2. │ ├─gRbase::triangulate(igraph::as_graphnel(ug))
   3. │ └─igraph::as_graphnel(ug)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 245 ]
  Error: Test failures
  Execution halted