Running 'testthat.R' [33s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RevGadgets)
  > 
  > test_check("RevGadgets")
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |====                                    |  10%
    |                                              
    |========                                |  20%
    |                                              
    |============                            |  30%
    |                                              
    |================                        |  40%
    |                                              
    |====================                    |  50%
    |                                              
    |========================                |  60%
    |                                              
    |============================            |  70%
    |                                              
    |================================        |  80%
    |                                              
    |====================================    |  90%
    |                                              
    |========================================| 100%
  
    |                                              
    |                                        |   0%
    |                                              
    |========================================| 100%
  [ FAIL 6 | WARN 3 | SKIP 0 | PASS 100 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_dropTip.R:11:3'): drops tips ───────────────────────────────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─RevGadgets::rerootPhylo(tree = tree, outgroup = "Galeopterus_variegatus") at test_dropTip.R:11:2
   2. └─base::loadNamespace(x)
   3.   ├─base::namespaceImportFrom(...)
   4.   │ └─base::asNamespace(ns)
   5.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   6.     └─base::namespaceImportFrom(...)
   7.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_plotAncStatesMAP.R:20:3'): plots MAP of ancestral states ───────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─RevGadgets::plotAncStatesMAP(t = example) at test_plotAncStatesMAP.R:20:2
   2. └─base::loadNamespace(x)
   3.   ├─base::namespaceImportFrom(...)
   4.   │ └─base::asNamespace(ns)
   5.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   6.     └─base::namespaceImportFrom(...)
   7.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_plotAncStatesPie.R:41:3'): plots pies of ancestral states ──────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─RevGadgets::plotAncStatesPie(...) at test_plotAncStatesPie.R:41:2
   2. └─base::loadNamespace(x)
   3.   ├─base::namespaceImportFrom(...)
   4.   │ └─base::asNamespace(ns)
   5.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   6.     └─base::namespaceImportFrom(...)
   7.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_plotFBDTree.R:12:3'): plots FBD tree ───────────────────────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─RevGadgets::plotFBDTree(...) at test_plotFBDTree.R:12:2
   2. │ └─RevGadgets:::plotTreeFull(...)
   3. └─base::loadNamespace(x)
   4.   ├─base::namespaceImportFrom(...)
   5.   │ └─base::asNamespace(ns)
   6.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   7.     └─base::namespaceImportFrom(...)
   8.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_plotTree.R:10:3'): plot basic, not-yet-rooted phylogeny ────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─RevGadgets::plotTree(tree = tree, node_labels = "posterior") at test_plotTree.R:10:2
   2. │ └─RevGadgets:::plotTreeFull(...)
   3. └─base::loadNamespace(x)
   4.   ├─base::namespaceImportFrom(...)
   5.   │ └─base::asNamespace(ns)
   6.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   7.     └─base::namespaceImportFrom(...)
   8.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test_rerootPhylo.R:11:3'): reroots tree ─────────────────────────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─RevGadgets::rerootPhylo(tree = tree, outgroup = "Galeopterus_variegatus") at test_rerootPhylo.R:11:2
   2. └─base::loadNamespace(x)
   3.   ├─base::namespaceImportFrom(...)
   4.   │ └─base::asNamespace(ns)
   5.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   6.     └─base::namespaceImportFrom(...)
   7.       └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 6 | WARN 3 | SKIP 0 | PASS 100 ]
  Error: Test failures
  Execution halted