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