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