Running 'testthat.R' [33s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(Signac)
  > 
  > test_check("Signac")
  == Failed tests ================================================================
  -- Error (test-preprocessing.R:23:3): DownsampleFeatures works -----------------
  Error: [[<- defined for objects of type "S4" only for subclasses of environment
  Backtrace:
      x
   1. \-Signac::DownsampleFeatures(object = atac_small, n = 5, verbose = FALSE) test-preprocessing.R:23:2
   2.   +-Seurat::`VariableFeatures<-`(...)
   3.   \-Seurat:::`VariableFeatures<-.Seurat`(...)
  -- Error (test-preprocessing.R:37:3): FindTopFeatures works --------------------
  Error: [[<- defined for objects of type "S4" only for subclasses of environment
  Backtrace:
      x
   1. +-Seurat::`VariableFeatures<-`(`*tmp*`, value = NULL) test-preprocessing.R:37:2
   2. \-Seurat:::`VariableFeatures<-.Seurat`(`*tmp*`, value = NULL)
  -- Error (test-preprocessing.R:51:3): FRiP works -------------------------------
  Error: [[<- defined for objects of type "S4" only for subclasses of environment
  Backtrace:
      x
   1. \-Signac::FRiP(object = atac_small, assay = "peaks", total.fragments = "fragments") test-preprocessing.R:51:2
   2.   +-Seurat::AddMetaData(object = object, metadata = frip, col.name = col.name)
   3.   \-Seurat:::AddMetaData.Seurat(...)
   4.     \-Seurat:::.AddMetaData(object = object, metadata = metadata, col.name = col.name)
  -- Error (test-preprocessing.R:91:3): NucleosomeSignal works -------------------
  Error: [[<- defined for objects of type "S4" only for subclasses of environment
  Backtrace:
      x
   1. +-Signac::`Fragments<-`(...) test-preprocessing.R:91:2
   2. \-Signac:::`Fragments<-.Seurat`(...)
  -- Error (test_fragments.R:126:3): SplitFragments works ------------------------
  Error: [[<- defined for objects of type "S4" only for subclasses of environment
  Backtrace:
      x
   1. +-Signac::`Fragments<-`(...) test_fragments.R:126:2
   2. \-Signac:::`Fragments<-.Seurat`(...)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted