CRAN Package Check Results for Package scTenifoldNet

Last updated on 2026-10-10 13:50:26 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4 27.36 105.34 132.70 OK
r-devel-linux-x86_64-debian-gcc 1.4.3 5.75 54.28 60.03 OK
r-devel-linux-x86_64-fedora-clang 1.4.3 6.00 51.02 57.02 OK
r-devel-linux-x86_64-fedora-gcc 1.4.3 6.00 51.43 57.43 OK
r-devel-windows-x86_64 1.4 39.00 204.00 243.00 ERROR
r-patched-linux-x86_64 1.4 24.94 98.66 123.60 OK
r-release-linux-x86_64 1.4 OK
r-release-macos-arm64 1.4.3 2.00 21.00 23.00 OK
r-release-macos-x86_64 1.4.3 6.00 65.00 71.00 OK
r-release-windows-x86_64 1.4 36.00 129.00 165.00 OK
r-oldrel-macos-arm64 1.4.3 3.00 29.00 32.00 ERROR
r-oldrel-macos-x86_64 1.4.3 5.00 77.00 82.00 OK
r-oldrel-windows-x86_64 1.4.3 13.00 93.00 106.00 OK

Check Details

Version: 1.4
Check: tests
Result: ERROR Running 'testthat.R' [13s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(scTenifoldNet) > > test_check("scTenifoldNet") Computing regression coefficients... Saving _problems/test-scQC-24.R [ FAIL 1 | WARN 1 | SKIP 0 | PASS 44 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-scQC.R:24:3'): scQC works ────────────────────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': lazy-load database 'D:/temp/2026_09_24_01_50_00_23554/RtmpG4bMOM/RLIBS_25d0445e43a99/Matrix/R/Matrix.rdb' is corrupt Backtrace: ▆ 1. ├─scTenifoldNet::scQC(...) at test-scQC.R:24:3 2. │ ├─methods (local) `[<-`(`*tmp*`, X < 0, value = `<dbl>`) 3. │ ├─X < 0 4. │ └─X < 0 5. └─base::.handleSimpleError(...) 6. └─base (local) h(simpleError(msg, call)) [ FAIL 1 | WARN 1 | SKIP 0 | PASS 44 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64

Version: 1.4.3
Check: tests
Result: ERROR Running ‘testthat.R’ [3s/2s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(scTenifoldNet) > > test_check("scTenifoldNet") *** caught segfault *** address 0x110, cause 'invalid permissions' *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: FUN(X[[i]], ...) 2: lapply(X = S, FUN = FUN, ...) 3: doTryCatch(return(expr), name, parentenv, handler) 4: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5: tryCatchList(expr, classes, parentenv, handlers) 6: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 7: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 8: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 9: FUN(X[[i]], ...) 10: lapply(seq_len(cores), inner.do) 11: parallel::mclapply(gene_blocks, coefficient_rows, Z = Z, d = d, nComp = nComp, secular_weights = secular_weights, mc.cores = nCores, mc.preschedule = TRUE) 12: .pcNetCoefficients(basis$Z, basis$d, nComp, nCores) 13: pcNet(X, nComp = nComp, verbose = FALSE, nCores = 2) 14: eval_bare(expr, quo_get_env(quo)) 15: quasi_label(enquo(object), label) 16: expect_equal(pcNet(X, nComp = nComp, verbose = FALSE, nCores = 2), pcNet(X, nComp = nComp, verbose = FALSE)) 17: eval(code, test_env) Traceback: 18: 1: eval(code, test_env)FUN(X[[i]], ...) 19: 2: withCallingHandlers({lapply(X = S, FUN = FUN, ...) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations 3: if (snapshot_skipped) {doTryCatch(return(expr), name, parentenv, handler) skip("On CRAN") } 4: else if (!new_expectations && skip_on_empty) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip_empty() } 5: }, expectation = handle_expectation, packageNotFoundError = function(e) {tryCatchList(expr, classes, parentenv, handlers) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) 6: }}, snapshot_on_cran = function(cnd) {tryCatch(expr, error = function(e) { snapshot_skipped <<- TRUE call <- conditionCall(e) invokeRestart("muffle_cran_snapshot") if (!is.null(call)) {}, skip = handle_skip, warning = handle_warning, message = handle_message, if (identical(call[[1L]], quote(doTryCatch))) error = handle_error, interrupt = handle_interrupt) call <- sys.call(-4L) 20: dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ")doTryCatch(return(expr), name, parentenv, handler) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]21: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")tryCatchOne(expr, names, parentenv, handlers[[1L]]) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 22: type = "b")tryCatchList(expr, classes, parentenv, handlers) if (w > LONG) prefix <- paste0(prefix, "\n ")23: }tryCatch(withCallingHandlers({ eval(code, test_env) else prefix <- "Error : " new_expectations <- the$test_expectations > starting_expectations msg <- paste0(prefix, conditionMessage(e), "\n") if (snapshot_skipped) { .Internal(seterrmessage(msg[1L])) skip("On CRAN") if (!silent && isTRUE(getOption("show.error.messages"))) { } else if (!new_expectations && skip_on_empty) { cat(msg, file = outFile) skip_empty() .Internal(printDeferredWarnings()) } } invisible(structure(msg, class = "try-error", condition = e))}, expectation = handle_expectation, packageNotFoundError = function(e) {}) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) 7: }try(lapply(X = S, FUN = FUN, ...), silent = TRUE)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE 8: invokeRestart("muffle_cran_snapshot")sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 9: FUN(X[[i]], ...)24: doWithOneRestart(return(expr), restart) 10: 25: lapply(seq_len(cores), inner.do)withOneRestart(expr, restarts[[1L]]) 11: 26: parallel::mclapply(gene_blocks, coefficient_rows, Z = Z, d = d, withRestarts(tryCatch(withCallingHandlers({ nComp = nComp, secular_weights = secular_weights, mc.cores = nCores, eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations mc.preschedule = TRUE) if (snapshot_skipped) { skip("On CRAN")12: }.pcNetCoefficients(basis$Z, basis$d, nComp, nCores) else if (!new_expectations && skip_on_empty) { skip_empty()13: }pcNet(X, nComp = nComp, verbose = FALSE, nCores = 2)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))14: }eval_bare(expr, quo_get_env(quo))}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE15: invokeRestart("muffle_cran_snapshot")quasi_label(enquo(object), label) }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 16: end_test = function() {expect_equal(pcNet(X, nComp = nComp, verbose = FALSE, nCores = 2), }) pcNet(X, nComp = nComp, verbose = FALSE)) 27: 17: test_code(code, parent.frame())eval(code, test_env) 28: 18: eval(code, test_env)test_that("pcNet matches per-gene SVD principal component regression", {19: nCells <- 200withCallingHandlers({ eval(code, test_env) nGenes <- 100 new_expectations <- the$test_expectations > starting_expectations nComp <- 3 set.seed(42) if (snapshot_skipped) { skip("On CRAN") } X <- matrix(rnbinom(n = nGenes * nCells, size = 20, prob = 0.98), else if (!new_expectations && skip_on_empty) { nrow = nGenes, ncol = nCells) skip_empty() rownames(X) <- paste0("Gene", seq_len(nGenes)) }}, expectation = handle_expectation, packageNotFoundError = function(e) { X_std <- scale(Matrix::t(X)) reference <- matrix(0, nGenes, nGenes) if (on_cran()) { for (K in seq_len(nGenes)) { skip(paste0("{", e$package, "} is not installed.")) design_matrix <- X_std[, -K] } principal_components <- svd(design_matrix, nu = 0, }, snapshot_on_cran = function(cnd) { nv = nComp)$v snapshot_skipped <<- TRUE pc_scores <- design_matrix %*% principal_components invokeRestart("muffle_cran_snapshot") pc_coefficients <- colSums(X_std[, K] * pc_scores)/colSums(pc_scores^2)}, skip = handle_skip, warning = handle_warning, message = handle_message, reference[K, -K] <- principal_components %*% pc_coefficients error = handle_error, interrupt = handle_interrupt) } xNet <- pcNet(X, nComp = nComp, scaleScores = FALSE, 20: verbose = FALSE)doTryCatch(return(expr), name, parentenv, handler) expect_equal(unname(as.matrix(xNet)), reference, tolerance = 1e-08) expect_equal(pcNet(X, nComp = nComp, verbose = FALSE, nCores = 2), pcNet(X, nComp = nComp, verbose = FALSE))21: })tryCatchOne(expr, names, parentenv, handlers[[1L]]) 29: eval(code, test_env)22: 30: tryCatchList(expr, classes, parentenv, handlers)eval(code, test_env) 23: 31: tryCatch(withCallingHandlers({withCallingHandlers({ eval(code, test_env) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { if (snapshot_skipped) { skip("On CRAN") skip("On CRAN") } } else if (!new_expectations && skip_on_empty) { else if (!new_expectations && skip_on_empty) { skip_empty() skip_empty() } }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)32: doTryCatch(return(expr), name, parentenv, handler) 33: tryCatchOne(expr, names, parentenv, handlers[[1L]])24: doWithOneRestart(return(expr), restart)34: tryCatchList(expr, classes, parentenv, handlers) 35: tryCatch(withCallingHandlers({ eval(code, test_env)25: new_expectations <- the$test_expectations > starting_expectationswithOneRestart(expr, restarts[[1L]]) if (snapshot_skipped) { skip("On CRAN")26: } else if (!new_expectations && skip_on_empty) {withRestarts(tryCatch(withCallingHandlers({ skip_empty() } eval(code, test_env)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { new_expectations <- the$test_expectations > starting_expectations skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { if (snapshot_skipped) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 36: skip("On CRAN")doWithOneRestart(return(expr), restart) } else if (!new_expectations && skip_on_empty) {37: withOneRestart(expr, restarts[[1L]]) skip_empty() 38: withRestarts(tryCatch(withCallingHandlers({ } eval(code, test_env)}, expectation = handle_expectation, packageNotFoundError = function(e) { new_expectations <- the$test_expectations > starting_expectations if (on_cran()) { if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() } skip(paste0("{", e$package, "} is not installed."))}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot")}, snapshot_on_cran = function(cnd) {}, skip = handle_skip, warning = handle_warning, message = handle_message, snapshot_skipped <<- TRUE error = handle_error, interrupt = handle_interrupt), error = handle_fatal), invokeRestart("muffle_cran_snapshot") end_test = function() {}, skip = handle_skip, warning = handle_warning, message = handle_message, }) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 39: end_test = function() {test_code(code = exprs, env = env, reporter = get_reporter() %||% }) StopReporter$new()) 40: 27: source_file(path, env = env(env), desc = desc, shuffle = shuffle, test_code(code, parent.frame()) error_call = error_call) 41: FUN(X[[i]], ...)28: 42: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)test_that("pcNet matches per-gene SVD principal component regression", {43: nCells <- 200doTryCatch(return(expr), name, parentenv, handler) nGenes <- 100 nComp <- 344: set.seed(42)tryCatchOne(expr, names, parentenv, handlers[[1L]]) X <- matrix(rnbinom(n = nGenes * nCells, size = 20, prob = 0.98), nrow = nGenes, ncol = nCells) 45: rownames(X) <- paste0("Gene", seq_len(nGenes))tryCatchList(expr, classes, parentenv, handlers) X_std <- scale(Matrix::t(X)) reference <- matrix(0, nGenes, nGenes)46: for (K in seq_len(nGenes)) {tryCatch(code, testthat_abort_reporter = function(cnd) { design_matrix <- X_std[, -K] cat(conditionMessage(cnd), "\n") principal_components <- svd(design_matrix, nu = 0, NULL nv = nComp)$v}) pc_scores <- design_matrix %*% principal_components pc_coefficients <- colSums(X_std[, K] * pc_scores)/colSums(pc_scores^2) reference[K, -K] <- principal_components %*% pc_coefficients47: }with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) xNet <- pcNet(X, nComp = nComp, scaleScores = FALSE, verbose = FALSE)48: test_files_serial(test_dir = test_dir, test_package = test_package, expect_equal(unname(as.matrix(xNet)), reference, tolerance = 1e-08) test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, expect_equal(pcNet(X, nComp = nComp, verbose = FALSE, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, nCores = 2), pcNet(X, nComp = nComp, verbose = FALSE)) error_call = error_call) }) 49: 29: eval(code, test_env)test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 30: load_package = load_package, parallel = parallel, shuffle = shuffle)eval(code, test_env) 50: 31: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")withCallingHandlers({ eval(code, test_env)51: new_expectations <- the$test_expectations > starting_expectationstest_check("scTenifoldNet") if (snapshot_skipped) { skip("On CRAN")An irrecoverable exception occurred. R is aborting now ... } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 32: doTryCatch(return(expr), name, parentenv, handler) 33: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 34: tryCatchList(expr, classes, parentenv, handlers) 35: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 36: doWithOneRestart(return(expr), restart) 37: withOneRestart(expr, restarts[[1L]]) 38: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) 39: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 40: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 41: FUN(X[[i]], ...) 42: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 43: doTryCatch(return(expr), name, parentenv, handler) 44: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 45: tryCatchList(expr, classes, parentenv, handlers) 46: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 47: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 48: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call) 49: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle) 50: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 51: test_check("scTenifoldNet") An irrecoverable exception occurred. R is aborting now ... Saving _problems/test-pcNet-89.R [ FAIL 1 | WARN 1 | SKIP 0 | PASS 66 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-pcNet.R:88:3'): pcNet matches per-gene SVD principal component regression ── Error in `.pcNetCoefficients(basis$Z, basis$d, nComp, nCores)`: Parallel computation failed: Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-pcNet.R:88:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─scTenifoldNet::pcNet(X, nComp = nComp, verbose = FALSE, nCores = 2) 5. └─scTenifoldNet:::.pcNetCoefficients(basis$Z, basis$d, nComp, nCores) [ FAIL 1 | WARN 1 | SKIP 0 | PASS 66 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-macos-arm64