Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(AnanseSeurat)
  > 
  > test_check("AnanseSeurat")
  loading maelstrom values from maelstrom assay using the cluster identifier seurat_clusters
  Loading required package: SeuratObject
  Loading required package: sp
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 6 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-Motif2TF_functions.R:6:5'): Maelstrom_Motif2TF works ───────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::Maelstrom_Motif2TF(...) at test-Motif2TF_functions.R:6:4
   2. │ └─AnanseSeurat::per_cluster_df(...)
   3. └─base::loadNamespace(x)
   4.   └─base::namespaceImportFrom(...)
   5.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-Motif2TF_functions.R:23:3'): Factor_Motif_Plot works ───────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::Factor_Motif_Plot(...) at test-Motif2TF_functions.R:23:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-calculateDEGS_functions.R:11:3'): DEGS are called from the single cell object ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::DEGS_scANANSE(...) at test-calculateDEGS_functions.R:11:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-export_functions.R:15:3'): CPM & Count files are sucessfully generated ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::export_CPM_scANANSE(...) at test-export_functions.R:15:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-export_functions.R:46:3'): Peak count matrix file is sucessfully generated ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::export_ATAC_scANANSE(...) at test-export_functions.R:46:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-export_functions.R:79:3'): Config and sample file are sucessfully generated ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::config_scANANSE(...) at test-export_functions.R:79:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-export_functions.R:107:3'): Maelstrom count matrix is sucessfully generated ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::export_ATAC_maelstrom(...) at test-export_functions.R:107:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-import_functions.R:7:13'): import seurat succesfully imports an influence file, wich contains an influence assay ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::import_seurat_scANANSE(...) at test-import_functions.R:7:12
   2. │ ├─base::rownames(as.data.frame(Seurat::Idents(object = seurat_object)))
   3. │ └─base::as.data.frame(Seurat::Idents(object = seurat_object))
   4. └─base::loadNamespace(x)
   5.   └─base::namespaceImportFrom(...)
   6.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-import_functions.R:26:5'): import maelstrom succesfully imports a maelstrom file, wich contains an motif enrichment scores ──
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::import_seurat_maelstrom(...) at test-import_functions.R:26:4
   2. │ ├─base::rownames(as.data.frame(Seurat::Idents(object = seurat_object)))
   3. │ └─base::as.data.frame(Seurat::Idents(object = seurat_object))
   4. └─base::loadNamespace(x)
   5.   └─base::namespaceImportFrom(...)
   6.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-import_functions.R:43:3'): per cell df works ───────────────────
  Error: object 'crossprod' is not exported by 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─AnanseSeurat::per_cluster_df(sce, assay = "influence", cluster_id = "seurat_clusters") at test-import_functions.R:43:2
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted