Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(POMS)
  > 
  > test_check("POMS")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 15 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_calc_balances.R:52:3'): compute_node_balances check balances at one node with all default settings. ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::compute_node_balances(...) at test_calc_balances.R:52:2
   2. │ └─parallel::mclapply(...)
   3. │   └─base::lapply(X, FUN, ...)
   4. │     └─POMS (local) FUN(X[[i]], ...)
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_calc_balances.R:108:3'): compute_node_balances change min number of tips to make sure that's working. ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::compute_node_balances(...) at test_calc_balances.R:108:2
   2. │ └─parallel::mclapply(...)
   3. │   └─base::lapply(X, FUN, ...)
   4. │     └─POMS (local) FUN(X[[i]], ...)
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_calc_balances.R:123:3'): compute_node_balances try subset_to_test with nodes present and no nodes that pass the min_num_tips ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_calc_balances.R:123:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─POMS::compute_node_balances(...)
    8. │ └─parallel::mclapply(...)
    9. │   └─base::lapply(X, FUN, ...)
   10. │     └─POMS (local) FUN(X[[i]], ...)
   11. └─base::loadNamespace(x)
   12.   └─base::namespaceImportFrom(...)
   13.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_calc_balances.R:136:3'): compute_node_balances try altering pseudocount to make sure that parameter is working as expected. ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::compute_node_balances(...) at test_calc_balances.R:136:2
   2. │ └─parallel::mclapply(...)
   3. │   └─base::lapply(X, FUN, ...)
   4. │     └─POMS (local) FUN(X[[i]], ...)
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_calc_balances.R:152:3'): compute_node_balances will dereplicate nodes correctly, cutoff = 0.75. ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::compute_node_balances(...) at test_calc_balances.R:152:2
   2. │ └─parallel::mclapply(...)
   3. │   └─base::lapply(X, FUN, ...)
   4. │     └─POMS (local) FUN(X[[i]], ...)
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_calc_balances.R:167:3'): compute_node_balances will dereplicate nodes correctly, cutoff = 0.5. ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::compute_node_balances(...) at test_calc_balances.R:167:2
   2. │ └─parallel::mclapply(...)
   3. │   └─base::lapply(X, FUN, ...)
   4. │     └─POMS (local) FUN(X[[i]], ...)
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_node_taxa.R:7:3'): taxa on each side of the node are correct, with combined labels and threshold of 0.51 ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::node_taxa(...) at test_node_taxa.R:7:2
   2. │ └─POMS:::lhs_rhs_tips(in_tree, node_label, get_node_index = TRUE)
   3. └─base::loadNamespace(x)
   4.   └─base::namespaceImportFrom(...)
   5.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_node_taxa.R:19:3'): taxa on each side of the node are correct, with simple (non-combined) labels and threshold of 0.95 ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::node_taxa(...) at test_node_taxa.R:19:2
   2. │ └─POMS:::lhs_rhs_tips(in_tree, node_label, get_node_index = TRUE)
   3. └─base::loadNamespace(x)
   4.   └─base::namespaceImportFrom(...)
   5.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_pipeline.R:14:1'): (code run outside of `test_that()`) ─────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─POMS::compute_node_balances(...) at test_pipeline.R:14:0
   2. │ └─parallel::mclapply(...)
   3. │   └─base::lapply(X, FUN, ...)
   4. │     └─POMS (local) FUN(X[[i]], ...)
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 15 ]
  Error: Test failures
  Execution halted