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