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