CRAN Package Check Results for Package scTenifoldNet

Last updated on 2026-12-01 01:52:44 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4.3 8.02 72.51 80.53 OK
r-devel-linux-x86_64-debian-gcc 1.4.3 5.92 55.49 61.41 OK
r-devel-linux-x86_64-fedora-clang 1.4.3 30.52 OK
r-devel-linux-x86_64-fedora-gcc 1.4.3 29.97 OK
r-devel-windows-x86_64 1.4.3 10.00 86.00 96.00 OK
r-patched-linux-x86_64 1.4.3 8.05 66.93 74.98 OK
r-release-linux-x86_64 1.4.3 7.88 66.58 74.46 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.3 9.00 80.00 89.00 OK
r-oldrel-macos-arm64 1.4.3 3.00 26.00 29.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 11.00 97.00 108.00 OK

Check Details

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