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