Running 'spelling.R' [0s]
  Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(scDiffCom)
  > 
  > test_check("scDiffCom")
  Loading required package: SeuratObject
  Error: package or namespace load failed for 'SeuratObject' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
   namespace 'Matrix' 1.3-2 is already loaded, but >= 1.3.3 is required
  == Failed tests ================================================================
  -- Error (test-everything.R:165:5): sample object is of class Seurat -----------
  Error: unable to find required package 'SeuratObject'
  Backtrace:
      x
   1. \-testthat::expect_s4_class(seurat_test, "Seurat") test-everything.R:165:4
   2.   +-testthat:::format_class(methods::is(object))
   3.   | +-base::paste0(encodeString(x, quote = "'"), collapse = "/")
   4.   | \-base::encodeString(x, quote = "'")
   5.   \-methods::is(object)
   6.     \-methods::extends(class1)
   7.       \-methods::getClassDef(class1)
   8.         \-methods:::.requirePackage(package)
  -- Error (test-everything.R:171:1): (code run outside of `test_that()`) --------
  Error: namespace 'Matrix' 1.3-2 is already loaded, but >= 1.3.3 is required
  Backtrace:
       x
    1. \-base::lapply(...) test-everything.R:171:0
    2.   \-scDiffCom:::FUN(X[[i]], ...)
    3.     \-scDiffCom:::extract_analysis_inputs(...) test-everything.R:174:4
    4.       \-scDiffCom:::extract_seurat_inputs(...)
    5.         \-Seurat::GetAssayData
    6.           \-base::getExportedValue(pkg, name)
    7.             \-base::asNamespace(ns)
    8.               \-base::getNamespace(ns)
    9.                 \-base::loadNamespace(name)
   10.                   +-base::namespaceImportFrom(...)
   11.                   | \-base::asNamespace(ns)
   12.                   \-base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   13.                     +-base::namespaceImportFrom(...)
   14.                     | \-base::asNamespace(ns)
   15.                     \-base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 5 ]
  Error: Test failures
  Execution halted