CRAN Package Check Results for Package scTenifoldNet

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

mirror server hosted at Truenetwork, Russian Federation.