Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(countland)
  > 
  > test_check("countland")
  Performing spectral clustering on dot products...
      done.
  Performing spectral embedding on dot products...
      done.
  [ FAIL 8 | WARN 2 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-countland.R:2:1'): (code run outside of `test_that()`) ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_IMA.R:2:1'): (code run outside of `test_that()`) ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland_IMA.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_dot.R:2:1'): (code run outside of `test_that()`) ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland_dot.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_marker.R:31:3'): function RankMarkerGenes, option method='rank-sums', returns correct values ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'matrixTests'
  Backtrace:
      ▆
   1. ├─countland::RankMarkerGenes(C, method = "rank-sums") at test-countland_marker.R:31:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_score.R:2:1'): (code run outside of `test_that()`) ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland_score.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_shared_counts.R:2:1'): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland_shared_counts.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_subsample.R:2:1'): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland_subsample.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-countland_subset.R:2:1'): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Seurat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-countland_subset.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 8 | WARN 2 | SKIP 0 | PASS 11 ]
  Error: Test failures
  Execution halted