* using log directory 'd:/Rcompile/CRANpkg/local/4.0/scDiffCom.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'scDiffCom/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'scDiffCom' version '0.1.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'scDiffCom' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [28s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... WARNING Error loading dataset 'seurat_sample_tms_liver': Error in .requirePackage(package) : unable to find required package 'SeuratObject' The dataset(s) may use package(s) not declared in Depends/Imports. * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking examples ... [8s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [11s] ERROR 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 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 5 ] == Failed tests ================================================================ -- Error (test-everything.R:165:5): sample object is of class Seurat ----------- Error in `.requirePackage(package)`: unable to find required package 'SeuratObject' Backtrace: x 1. \-testthat::expect_s4_class(seurat_test, "Seurat") at 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 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 Backtrace: x 1. \-base::lapply(...) at test-everything.R:171:0 2. \-scDiffCom FUN(X[[i]], ...) 3. \-scDiffCom:::extract_analysis_inputs(...) at 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 * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 1 WARNING