CRAN Package Check Results for Package scTenifoldNet

Last updated on 2026-11-21 17:52:40 CET.

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