Last updated on 2026-07-18 00:52:25 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 2.10.0 | 5.88 | 142.77 | 148.65 | OK | |
| r-devel-linux-x86_64-debian-gcc | 2.10.0 | 4.87 | 100.13 | 105.00 | OK | |
| r-devel-linux-x86_64-fedora-clang | 2.10.0 | 10.00 | 223.42 | 233.42 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 2.10.0 | 104.38 | OK | |||
| r-devel-windows-x86_64 | 2.10.0 | 11.00 | 148.00 | 159.00 | OK | |
| r-patched-linux-x86_64 | 2.10.0 | 8.11 | 132.98 | 141.09 | OK | |
| r-release-linux-x86_64 | 2.10.0 | 4.96 | 133.24 | 138.20 | OK | |
| r-release-macos-arm64 | 2.10.0 | 2.00 | 33.00 | 35.00 | OK | |
| r-release-macos-x86_64 | 2.10.0 | 5.00 | 165.00 | 170.00 | OK | |
| r-release-windows-x86_64 | 2.10.0 | 12.00 | 156.00 | 168.00 | OK | |
| r-oldrel-macos-arm64 | 2.10.0 | 2.00 | 37.00 | 39.00 | ERROR | |
| r-oldrel-macos-x86_64 | 2.10.0 | 5.00 | 133.00 | 138.00 | OK | |
| r-oldrel-windows-x86_64 | 2.10.0 | 14.00 | 179.00 | 193.00 | OK |
Version: 2.10.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [14s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(loo)
This is loo version 2.10.0
- Online documentation and vignettes at mc-stan.org/loo
- As of v2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) for an entire session.
> library(testthat)
Attaching package: 'testthat'
The following object is masked from 'package:loo':
compare
> Sys.setenv("R_TESTS" = "")
> test_check("loo")
Starting 2 test processes.
> test_loo_and_waic.R:
> test_loo_and_waic.R: *** caught segfault ***
> test_loo_and_waic.R: address 0x110, cause 'invalid permissions'
> test_loo_and_waic.R:
> test_loo_and_waic.R: *** caught segfault ***
> test_loo_and_waic.R: address 0x110, cause 'invalid permissions'
> test_loo_and_waic.R:
> test_loo_and_waic.R: Traceback:
> test_loo_and_waic.R: 1: outer(X, Y)
> test_loo_and_waic.R: 2: -theta %o% x
> test_loo_and_waic.R: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)
> test_loo_and_waic.R: 4: psis_smooth_tail(lw_tail, cutoff)
> test_loo_and_waic.R: 5: is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])
> test_loo_and_waic.R: 6: FUN(X[[i]], ...)
> test_loo_and_waic.R: 7:
> test_loo_and_waic.R: Traceback:
> test_loo_and_waic.R: lapply(X = S, FUN = FUN, ...) 1:
> test_loo_and_waic.R: outer(X, Y) 8:
> test_loo_and_waic.R: doTryCatch(return(expr), name, parentenv, handler) 2:
> test_loo_and_waic.R: -theta %o% x 9:
> test_loo_and_waic.R: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 3:
> test_loo_and_waic.R: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)10:
> test_loo_and_waic.R: tryCatchList(expr, classes, parentenv, handlers) 4:
> test_loo_and_waic.R: psis_smooth_tail(lw_tail, cutoff)11:
> test_loo_and_waic.R: tryCatch(expr, error = function(e) { 5: call <- conditionCall(e)is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]) if (!is.null(call)) {
> test_loo_and_waic.R: if (identical(call[[1L]], quote(doTryCatch))) 6: call <- sys.call(-4L)FUN(X[[i]], ...) dcall <- deparse(call, nlines = 1L)
> test_loo_and_waic.R: prefix <- paste("Error in", dcall, ": ") 7: LONG <- 75Llapply(X = S, FUN = FUN, ...) sm <- strsplit(conditionMessage(e), "\n")[[1L]]
> test_loo_and_waic.R: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") 8: if (is.na(w)) doTryCatch(return(expr), name, parentenv, handler) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
> test_loo_and_waic.R: type = "b") 9: if (w > LONG) tryCatchOne(expr, names, parentenv, handlers[[1L]]) prefix <- paste0(prefix, "\n ")
> test_loo_and_waic.R: }10: else prefix <- "Error : "tryCatchList(expr, classes, parentenv, handlers) msg <- paste0(prefix, conditionMessage(e), "\n")
> test_loo_and_waic.R: .Internal(seterrmessage(msg[1L]))11: if (!silent && isTRUE(getOption("show.error.messages"))) {tryCatch(expr, error = function(e) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) call <- conditionCall(e)
> test_loo_and_waic.R: if (!is.null(call)) {
> test_loo_and_waic.R: 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 ")12: }try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_and_waic.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
> test_loo_and_waic.R: 14: else prefix <- "Error : "FUN(X[[i]], ...) msg <- paste0(prefix, conditionMessage(e), "\n")
> test_loo_and_waic.R: .Internal(seterrmessage(msg[1L]))15: if (!silent && isTRUE(getOption("show.error.messages"))) {lapply(seq_len(cores), inner.do) cat(msg, file = outFile)
> test_loo_and_waic.R: .Internal(printDeferredWarnings())16: }parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]))
> test_loo_and_waic.R: invisible(structure(msg, class = "try-error", condition = e))})
> test_loo_and_waic.R: 12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_and_waic.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, method = method)
> test_loo_and_waic.R: 18: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, method = is_method)13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
> test_loo_and_waic.R: 14: FUN(X[[i]], ...)
> test_loo_and_waic.R: 15: lapply(seq_len(cores), inner.do)
> test_loo_and_waic.R: 16: parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]))
> test_loo_and_waic.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores,
> test_loo_and_waic.R: method = method)19:
> test_loo_and_waic.R: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)18:
> test_loo_and_waic.R: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, 20: method = is_method)loo(LLarr, r_eff = r_eff_arr, cores = 2)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 19: 21: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)withCallingHandlers(expr, warning = function(w) if (inherits(w,
> test_loo_and_waic.R: classes)) tryInvokeRestart("muffleWarning"))20:
> test_loo_and_waic.R: loo(LLarr, r_eff = r_eff_arr, cores = 2)22:
> test_loo_and_waic.R: suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2))21:
> test_loo_and_waic.R: withCallingHandlers(expr, warning = function(w) if (inherits(w, 23: classes)) tryInvokeRestart("muffleWarning"))eval(code, test_env)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 22: 24: suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2))eval(code, test_env)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 23: 25: eval(code, test_env)withCallingHandlers({
> test_loo_and_waic.R: eval(code, test_env)24: new_expectations <- the$test_expectations > starting_expectationseval(code, test_env) if (snapshot_skipped) {
> test_loo_and_waic.R: skip("On CRAN")25: }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) }
> test_loo_and_waic.R: }, snapshot_on_cran = function(cnd) {26: snapshot_skipped <<- TRUEdoTryCatch(return(expr), name, parentenv, handler) invokeRestart("muffle_cran_snapshot")
> test_loo_and_waic.R: }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> test_loo_and_waic.R: 26: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 28: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 28: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 29: 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() }29: }, 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), error = handle_fatal) }
> test_loo_and_waic.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {30: if (on_cran()) {doWithOneRestart(return(expr), restart) skip(paste0("{", e$package, "} is not installed."))
> test_loo_and_waic.R: }31: }, snapshot_on_cran = function(cnd) {withOneRestart(expr, restarts[[1L]]) snapshot_skipped <<- TRUE
> test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")32: }, 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)
> test_loo_and_waic.R: 30: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 31: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty()32: 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) {}, expectation = handle_expectation, packageNotFoundError = function(e) { skip_empty() if (on_cran()) { }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) 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() { })
> test_loo_and_waic.R: 33: }test_code(code, parent.frame())}, snapshot_on_cran = function(cnd) {
> test_loo_and_waic.R: snapshot_skipped <<- TRUE34: invokeRestart("muffle_cran_snapshot")test_that("loo with cores=1 and cores=2 gives same results", }, skip = handle_skip, warning = handle_warning, message = handle_message, { error = handle_error, interrupt = handle_interrupt), error = handle_fatal), loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, end_test = function() { cores = 2)) }) expect_equal(loo1$estimates, loo2$estimates)
> test_loo_and_waic.R: })33:
> test_loo_and_waic.R: test_code(code, parent.frame())35:
> test_loo_and_waic.R: eval(code, test_env)34:
> test_loo_and_waic.R: test_that("loo with cores=1 and cores=2 gives same results", 36: {eval(code, test_env) loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr,
> test_loo_and_waic.R: cores = 2))37: expect_equal(loo1$estimates, loo2$estimates)withCallingHandlers({ }) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN")
> test_loo_and_waic.R: }35: else if (!new_expectations && skip_on_empty) {eval(code, test_env) skip_empty()
> test_loo_and_waic.R: }36: }, expectation = handle_expectation, packageNotFoundError = function(e) {
> test_loo_and_waic.R: eval(code, test_env) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }
> test_loo_and_waic.R: 37: withCallingHandlers({ eval(code, test_env) 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) {
> test_loo_and_waic.R: if (on_cran()) {38: skip(paste0("{", e$package, "} is not installed."))doTryCatch(return(expr), name, parentenv, handler) }
> test_loo_and_waic.R: }, snapshot_on_cran = function(cnd) {39: snapshot_skipped <<- TRUEtryCatchOne(expr, names, parentenv, handlers[[1L]]) invokeRestart("muffle_cran_snapshot")
> test_loo_and_waic.R: }, skip = handle_skip, warning = handle_warning, message = handle_message, 40: error = handle_error, interrupt = handle_interrupt)tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 38: 41: doTryCatch(return(expr), name, parentenv, handler)tryCatch(withCallingHandlers({
> test_loo_and_waic.R: eval(code, test_env)39: new_expectations <- the$test_expectations > starting_expectationstryCatchOne(expr, names, parentenv, handlers[[1L]]) if (snapshot_skipped) {
> test_loo_and_waic.R: skip("On CRAN")40: }tryCatchList(expr, classes, parentenv, handlers) else if (!new_expectations && skip_on_empty) {
> test_loo_and_waic.R: 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, 41: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_and_waic.R: 42: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: 44: 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()) { 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.")) } 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)}, 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() {
> test_loo_and_waic.R: 42: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: 44: })
> test_loo_and_waic.R: 45: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
> test_loo_and_waic.R: 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()46: }source_file(path, env = env(env), desc = desc, shuffle = shuffle, }, expectation = handle_expectation, packageNotFoundError = function(e) { error_call = error_call) if (on_cran()) {
> test_loo_and_waic.R: skip(paste0("{", e$package, "} is not installed."))47: }test_one_file(path, env = the$testing_env, shuffle = shuffle)}, snapshot_on_cran = function(cnd) {
> test_loo_and_waic.R: snapshot_skipped <<- TRUE48: invokeRestart("muffle_cran_snapshot")doTryCatch(return(expr), name, parentenv, handler)}, skip = handle_skip, warning = handle_warning, message = handle_message,
> test_loo_and_waic.R: 49: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 50: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 51: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
> test_loo_and_waic.R: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, shuffle = shuffle))
> test_loo_and_waic.R: 53: asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_and_waic.R: 54: (function (path, shuffle) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() {{ }) asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_and_waic.R: 45: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
> test_loo_and_waic.R: 46: source_file(path, env = env(env), desc = desc, shuffle = shuffle, })(base::quote("test_loo_and_waic.R"), base::quote(FALSE))
> test_loo_and_waic.R: 55: (function (what, args, quote = FALSE, envir = parent.frame()) { if (!is.list(args)) stop("second argument must be a list") if (quote) error_call = error_call)
> test_loo_and_waic.R: 47: test_one_file(path, env = the$testing_env, shuffle = shuffle)
> test_loo_and_waic.R: 48: args <- lapply(args, enquote)doTryCatch(return(expr), name, parentenv, handler) .Internal(do.call(what, args, envir))
> test_loo_and_waic.R: })(base::quote(function (path, shuffle) 49: {tryCatchOne(expr, names, parentenv, handlers[[1L]]) asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_and_waic.R: }), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), 50: quote = base::quote(TRUE))tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 56: 51: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_and_waic.R: 57: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
> test_loo_and_waic.R: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", shuffle = shuffle)) compress = FALSE)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 53: 58: asNamespace("testthat")$queue_task(path, shuffle)base::withCallingHandlers({
> test_loo_and_waic.R: {54: NULL(function (path, shuffle) NULL{ } asNamespace("testthat")$queue_task(path, shuffle) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), })(base::quote("test_loo_and_waic.R"), base::quote(FALSE)) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv,
> test_loo_and_waic.R: quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", 55: compress = FALSE)(function (what, args, quote = FALSE, envir = parent.frame()) base::flush(base::stdout()){ base::flush(base::stderr()) if (!is.list(args)) { stop("second argument must be a list") NULL if (quote) NULL args <- lapply(args, enquote) } .Internal(do.call(what, args, envir)) base::invisible()})(base::quote(function (path, shuffle) }, error = function(e) {{ { asNamespace("testthat")$queue_task(path, shuffle) callr_data <- base::as.environment("tools:callr")$`__callr_data__`}), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_and_waic.R: 56: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_and_waic.R: 57: err <- callr_data$err if (FALSE) {
> test_loo_and_waic.R: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", utils::dump.frames("__callr_dump__") compress = FALSE) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`,
> test_loo_and_waic.R: envir = callr_data)58: base::rm("__callr_dump__", envir = .GlobalEnv)base::withCallingHandlers({ } { e <- err$process_call(e) NULL e2 <- err$new_error("error in callr subprocess") NULL class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2)) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), e2 <- err$add_trace_back(e2) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, cut <- base::which(e2$trace$scope == "global")[1] quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", if (!base::is.na(cut)) { compress = FALSE) e2$trace <- e2$trace[-(1:cut), ] base::flush(base::stdout()) } base::flush(base::stderr()) if (callr_data$has_otel) { { callr_data$otel_span$record_exception(e2) NULL } NULL base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` } base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class base::assign(".Traceback", base::.traceback(4), envir = callr_data) class(e2) <- base::c("callr_remote_error", class(e2)) utils::dump.frames("__callr_dump__") e2 <- err$add_trace_back(e2) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, cut <- base::which(e2$trace$scope == "global")[1] envir = callr_data) if (!base::is.na(cut)) { base::rm("__callr_dump__", envir = .GlobalEnv) e2$trace <- e2$trace[-(1:cut), ] } } e <- err$process_call(e) if (callr_data$has_otel) { e2 <- err$new_error("error in callr subprocess") callr_data$otel_span$record_exception(e2) class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2)) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", e2 <- err$add_trace_back(e2) ".error")) cut <- base::which(e2$trace$scope == "global")[1] } if (!base::is.na(cut)) {}, callr_message = function(e) { e2$trace <- e2$trace[-(1:cut), ] base::try({ } callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (callr_data$has_otel) { pxlib <- callr_data$pxlib callr_data$otel_span$record_exception(e2) if (base::is.null(e$code)) { } e$code <- "301" base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", } ".error")) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, } NULL)))}, interrupt = function(e) { data <- base::paste0(e$code, " ", base::nchar(msg), "\n", { msg) callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (callr_data$has_otel) { err <- callr_data$err callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })})
> test_loo_and_waic.R: e <- err$process_call(e)59: e2 <- err$new_error("error in callr subprocess")doTryCatch(return(expr), name, parentenv, handler) class <- base::class
> test_loo_and_waic.R: class(e2) <- base::c("callr_remote_error", class(e2))60: e2 <- err$add_trace_back(e2)tryCatchOne(expr, names, parentenv, handlers[[1L]]) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2)
> test_loo_and_waic.R: 61: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
> test_loo_and_waic.R: 62: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__`63: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
> test_loo_and_waic.R: 64: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: pxlib <- callr_data$pxlib65: if (base::is.null(e$code)) {base::tryCatch(base::withCallingHandlers({ e$code <- "301" { } NULL msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL NULL))) } data <- base::paste0(e$code, " ", base::nchar(msg), "\n", base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), msg) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, if (callr_data$has_otel) { quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) compress = FALSE) } base::flush(base::stdout()) pxlib$write_fd(3L, data) base::flush(base::stderr()) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { { base::invokeRestart("cli_message_handled") NULL } NULL else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { } base::invokeRestart("muffleMessage") base::invisible() }}, error = function(e) { }) {}) callr_data <- base::as.environment("tools:callr")$`__callr_data__`
> test_loo_and_waic.R: err <- callr_data$err59: if (FALSE) {doTryCatch(return(expr), name, parentenv, handler) base::assign(".Traceback", base::.traceback(4), envir = callr_data)
> test_loo_and_waic.R: utils::dump.frames("__callr_dump__")60: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, tryCatchOne(expr, names, parentenv, handlers[[1L]]) envir = callr_data)
> test_loo_and_waic.R: 61:
> test_loo_and_waic.R: base::rm("__callr_dump__", envir = .GlobalEnv)tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess")
> test_loo_and_waic.R: 62: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 63: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) names[nh], parentenv, handlers[[nh]])
> test_loo_and_waic.R: 64: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 65: base::tryCatch(base::withCallingHandlers({ } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", ".error")) }}, interrupt = function(e) { { NULL NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-171311a6b2cf9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, { quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", callr_data <- base::as.environment("tools:callr")$`__callr_data__` compress = FALSE) err <- callr_data$err base::flush(base::stdout()) if (FALSE) { base::flush(base::stderr()) base::assign(".Traceback", base::.traceback(4), envir = callr_data) { utils::dump.frames("__callr_dump__") NULL base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, NULL envir = callr_data) } base::rm("__callr_dump__", envir = .GlobalEnv) base::invisible() }}, error = function(e) { e <- err$process_call(e) { e2 <- err$new_error("error in callr subprocess") callr_data <- base::as.environment("tools:callr")$`__callr_data__` class <- base::class err <- callr_data$err class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) pxlib <- callr_data$pxlib utils::dump.frames("__callr_dump__") if (base::is.null(e$code)) { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}), error = function(e) { { NULL NULL } if (FALSE) { base::try(base::stop(e)) } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { { NULL NULL } envir = callr_data) if (FALSE) { base::q(save = "no", status = 1) base::rm("__callr_dump__", envir = .GlobalEnv) } } base::invisible() e <- err$process_call(e)}) e2 <- err$new_error("error in callr subprocess")
> test_loo_and_waic.R: class <- base::classAn irrecoverable exception occurred. R is aborting now ...
> test_loo_and_waic.R: class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-1713172559cfb", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}), error = function(e) { { NULL NULL } if (FALSE) { base::try(base::stop(e)) } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { { NULL NULL } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()})
> test_loo_and_waic.R: An irrecoverable exception occurred. R is aborting now ...
Saving _problems/test_loo_and_waic-30.R
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: *** caught segfault ***
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: *** caught segfault ***
> test_loo_predictive_metric.R: address 0x110, cause 'invalid permissions'
> test_loo_predictive_metric.R: address 0x110, cause 'invalid permissions'
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: Traceback:
> test_loo_predictive_metric.R: 1: outer(X, Y)
> test_loo_predictive_metric.R: 2: -theta %o% x
> test_loo_predictive_metric.R: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)
> test_loo_predictive_metric.R: 4: psis_smooth_tail(lw_tail, cutoff)
> test_loo_predictive_metric.R: 5: is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])
> test_loo_predictive_metric.R: 6: FUN(X[[i]], ...)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: Traceback:
> test_loo_predictive_metric.R: 1: outer(X, Y)
> test_loo_predictive_metric.R: 2: -theta %o% x
> test_loo_predictive_metric.R: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)
> test_loo_predictive_metric.R: 7: 4: lapply(X = S, FUN = FUN, ...)
> test_loo_predictive_metric.R: 8: doTryCatch(return(expr), name, parentenv, handler)psis_smooth_tail(lw_tail, cutoff)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 9: 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 10: 6: tryCatchList(expr, classes, parentenv, handlers)FUN(X[[i]], ...)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 11: 7: tryCatch(expr, error = function(e) {lapply(X = S, FUN = FUN, ...) call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L)
> test_loo_predictive_metric.R: prefix <- paste("Error in", dcall, ": ") 8: LONG <- 75LdoTryCatch(return(expr), name, parentenv, handler) 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],
> test_loo_predictive_metric.R: type = "b") 9: if (w > LONG) tryCatchOne(expr, names, parentenv, handlers[[1L]]) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L]))
> test_loo_predictive_metric.R: if (!silent && isTRUE(getOption("show.error.messages"))) {10: cat(msg, file = outFile)tryCatchList(expr, classes, parentenv, handlers) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
> test_loo_predictive_metric.R: 11: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)
> test_loo_predictive_metric.R: dcall <- deparse(call, nlines = 1L)12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_predictive_metric.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 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 : "
> test_loo_predictive_metric.R: 14: FUN(X[[i]], ...)
> test_loo_predictive_metric.R: 15: msg <- paste0(prefix, conditionMessage(e), "\n")lapply(seq_len(cores), inner.do) .Internal(seterrmessage(msg[1L]))
> test_loo_predictive_metric.R: if (!silent && isTRUE(getOption("show.error.messages"))) {16: cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]))
> test_loo_predictive_metric.R: 17:
> test_loo_predictive_metric.R: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, 12: method = method)try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 18: 13: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) method = "psis")
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 14: 19: FUN(X[[i]], ...)psis.matrix(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 15: 20: lapply(seq_len(cores), inner.do)psis(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 16: 21: parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]))
> test_loo_predictive_metric.R: 17: eval(code, test_env)
> test_loo_predictive_metric.R: 22: eval(code, test_env)
> test_loo_predictive_metric.R: 23: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, withCallingHandlers({ method = method) eval(code, test_env)
> test_loo_predictive_metric.R: new_expectations <- the$test_expectations > starting_expectations18: if (snapshot_skipped) {importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, skip("On CRAN") method = "psis") }
> test_loo_predictive_metric.R: else if (!new_expectations && skip_on_empty) {19: skip_empty()psis.matrix(-LL, r_eff = r_eff, cores = 2) }
> test_loo_predictive_metric.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {20: if (on_cran()) {psis(-LL, r_eff = r_eff, cores = 2) skip(paste0("{", e$package, "} is not installed."))
> test_loo_predictive_metric.R: }21: }, snapshot_on_cran = function(cnd) {eval(code, test_env) snapshot_skipped <<- TRUE
> test_loo_predictive_metric.R: invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> test_loo_predictive_metric.R: 24: 22: doTryCatch(return(expr), name, parentenv, handler)eval(code, test_env)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 25: 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])withCallingHandlers({
> test_loo_predictive_metric.R: eval(code, test_env)26: new_expectations <- the$test_expectations > starting_expectationstryCatchList(expr, classes, parentenv, handlers) if (snapshot_skipped) {
> test_loo_predictive_metric.R: skip("On CRAN")27: }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") } 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, if (on_cran()) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal) skip(paste0("{", e$package, "} is not installed."))
> test_loo_predictive_metric.R: }28: }, snapshot_on_cran = function(cnd) {doWithOneRestart(return(expr), restart) snapshot_skipped <<- TRUE
> test_loo_predictive_metric.R: invokeRestart("muffle_cran_snapshot")29: }, skip = handle_skip, warning = handle_warning, message = handle_message, withOneRestart(expr, restarts[[1L]]) error = handle_error, interrupt = handle_interrupt)
> test_loo_predictive_metric.R: 24: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 25: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 26: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 30: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations
> test_loo_predictive_metric.R: 27: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { if (snapshot_skipped) { skip("On CRAN") skip("On CRAN") } } else if (!new_expectations && skip_on_empty) { else if (!new_expectations && skip_on_empty) {
> test_loo_predictive_metric.R: skip_empty() skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) skip(paste0("{", e$package, "} is not installed.")) } }}, snapshot_on_cran = function(cnd) {}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) error = handle_error, interrupt = handle_interrupt), error = handle_fatal),
> test_loo_predictive_metric.R: end_test = function() {28: })doWithOneRestart(return(expr), restart)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 31: 29: test_code(code = exprs, env = env, reporter = get_reporter() %||% withOneRestart(expr, restarts[[1L]]) StopReporter$new())
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 30: 32: withRestarts(tryCatch(withCallingHandlers({source_file(path, env = env(env), desc = desc, shuffle = shuffle, eval(code, test_env) error_call = error_call) new_expectations <- the$test_expectations > starting_expectations
> test_loo_predictive_metric.R: if (snapshot_skipped) {33: skip("On CRAN")test_one_file(path, env = the$testing_env, shuffle = shuffle) }
> test_loo_predictive_metric.R: else if (!new_expectations && skip_on_empty) {34: skip_empty()doTryCatch(return(expr), name, parentenv, handler) }
> test_loo_predictive_metric.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {35: if (on_cran()) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip(paste0("{", e$package, "} is not installed."))
> test_loo_predictive_metric.R: }36: }, snapshot_on_cran = function(cnd) {tryCatchList(expr, classes, parentenv, handlers) snapshot_skipped <<- TRUE
> test_loo_predictive_metric.R: invokeRestart("muffle_cran_snapshot")37: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatch(code, testthat_abort_reporter = function(cnd) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal), cat(conditionMessage(cnd), "\n") end_test = function() { NULL })})
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 31: 38: test_code(code = exprs, env = env, reporter = get_reporter() %||% with_reporter(multi, test_one_file(path, env = the$testing_env, StopReporter$new()) shuffle = shuffle))
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 32: 39: source_file(path, env = env(env), desc = desc, shuffle = shuffle, asNamespace("testthat")$queue_task(path, shuffle) error_call = error_call)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 40: 33: (function (path, shuffle) test_one_file(path, env = the$testing_env, shuffle = shuffle){
> test_loo_predictive_metric.R: asNamespace("testthat")$queue_task(path, shuffle)34: })(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE))doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 41: 36: (function (what, args, quote = FALSE, envir = parent.frame()) tryCatchList(expr, classes, parentenv, handlers){
> test_loo_predictive_metric.R: if (!is.list(args)) 37: stop("second argument must be a list")tryCatch(code, testthat_abort_reporter = function(cnd) { if (quote) cat(conditionMessage(cnd), "\n") args <- lapply(args, enquote) NULL .Internal(do.call(what, args, envir))})})(base::quote(function (path, shuffle)
> test_loo_predictive_metric.R: {38: asNamespace("testthat")$queue_task(path, shuffle)with_reporter(multi, test_one_file(path, env = the$testing_env, }), base::quote(list("test_loo_predictive_metric.R", FALSE)), shuffle = shuffle)) envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 39: 42: asNamespace("testthat")$queue_task(path, shuffle)base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_predictive_metric.R: 43: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", compress = FALSE)
> test_loo_predictive_metric.R: 40: (function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle)})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE))
> test_loo_predictive_metric.R: 44: base::withCallingHandlers({ { NULL NULL }
> test_loo_predictive_metric.R: 41: (function (what, args, quote = FALSE, envir = parent.frame()) { if (!is.list(args)) stop("second argument must be a list") base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), if (quote) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, args <- lapply(args, enquote) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", .Internal(do.call(what, args, envir)) compress = FALSE)})(base::quote(function (path, shuffle) base::flush(base::stdout()){ base::flush(base::stderr()) asNamespace("testthat")$queue_task(path, shuffle) {}), base::quote(list("test_loo_predictive_metric.R", FALSE)), NULL envir = base::quote(<environment>), quote = base::quote(TRUE)) NULL
> test_loo_predictive_metric.R: }42: base::invisible()base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2))
> test_loo_predictive_metric.R: 43: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", compress = FALSE)
> test_loo_predictive_metric.R: 44: base::withCallingHandlers({ { NULL NULL } e2 <- err$add_trace_back(e2) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), cut <- base::which(e2$trace$scope == "global")[1] base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, if (!base::is.na(cut)) { quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", e2$trace <- e2$trace[-(1:cut), ] compress = FALSE) } base::flush(base::stdout()) if (callr_data$has_otel) { base::flush(base::stderr()) callr_data$otel_span$record_exception(e2) { } NULL base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", NULL ".error")) } } base::invisible()}, interrupt = function(e) {}, error = function(e) { { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err err <- callr_data$err if (FALSE) { if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv)
> test_loo_predictive_metric.R: base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) } e2 <- err$add_trace_back(e2) e <- err$process_call(e) cut <- base::which(e2$trace$scope == "global")[1] e2 <- err$new_error("error in callr subprocess") if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", ".error")) } class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) {}, callr_message = function(e) { e2$trace <- e2$trace[-(1:cut), ] base::try({ } callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", ".error")) }}, callr_message = function(e) { base::try({ pxlib$write_fd(3L, data) callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })})
> test_loo_predictive_metric.R: 45: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 46: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: }47: })})
> test_loo_predictive_metric.R: 45: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])46:
> test_loo_predictive_metric.R: tryCatchOne(expr, names, parentenv, handlers[[1L]])48:
> test_loo_predictive_metric.R: doTryCatch(return(expr), name, parentenv, handler)47:
> test_loo_predictive_metric.R: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])49:
> test_loo_predictive_metric.R: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 48: names[nh], parentenv, handlers[[nh]])doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 50: 49: tryCatchList(expr, classes, parentenv, handlers)tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
> test_loo_predictive_metric.R: names[nh], parentenv, handlers[[nh]])51:
> test_loo_predictive_metric.R: base::tryCatch(base::withCallingHandlers({50: {tryCatchList(expr, classes, parentenv, handlers) NULL
> test_loo_predictive_metric.R: NULL51: }base::tryCatch(base::withCallingHandlers({ base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, NULL quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL NULL } } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-fun-1713137a6088c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) { NULL NULL } base::invisible()}, error = function(e) { utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") { class <- base::class callr_data <- base::as.environment("tools:callr")$`__callr_data__` class(e2) <- base::c("callr_remote_error", class(e2)) err <- callr_data$err e2 <- err$add_trace_back(e2) if (FALSE) { cut <- base::which(e2$trace$scope == "global")[1] base::assign(".Traceback", base::.traceback(4), envir = callr_data) if (!base::is.na(cut)) { utils::dump.frames("__callr_dump__") e2$trace <- e2$trace[-(1:cut), ] base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) if (callr_data$has_otel) { base::rm("__callr_dump__", envir = .GlobalEnv) callr_data$otel_span$record_exception(e2) } } e <- err$process_call(e) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", e2 <- err$new_error("error in callr subprocess") ".error")) class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2))}, interrupt = function(e) { e2 <- err$add_trace_back(e2) { cut <- base::which(e2$trace$scope == "global")[1] callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (!base::is.na(cut)) { err <- callr_data$err e2$trace <- e2$trace[-(1:cut), ] if (FALSE) { } base::assign(".Traceback", base::.traceback(4), envir = callr_data) if (callr_data$has_otel) {
> test_loo_predictive_metric.R: utils::dump.frames("__callr_dump__") callr_data$otel_span$record_exception(e2) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", e <- err$process_call(e) ".error")) e2 <- err$new_error("error in callr subprocess") } class <- base::class}, interrupt = function(e) { class(e2) <- base::c("callr_remote_error", class(e2)) { e2 <- err$add_trace_back(e2) callr_data <- base::as.environment("tools:callr")$`__callr_data__` cut <- base::which(e2$trace$scope == "global")[1] err <- callr_data$err if (!base::is.na(cut)) { if (FALSE) { e2$trace <- e2$trace[-(1:cut), ] base::assign(".Traceback", base::.traceback(4), envir = callr_data) } utils::dump.frames("__callr_dump__") if (callr_data$has_otel) { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, callr_data$otel_span$record_exception(e2) envir = callr_data) } base::rm("__callr_dump__", envir = .GlobalEnv) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpuMHJ1D/callr-rs-result-17131757b3bde", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) } data <- base::paste0(e$code, " ", base::nchar(msg), "\n", else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { msg) base::invokeRestart("muffleMessage") if (callr_data$has_otel) { } callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") })}), error = function(e) { { NULL NULL } if (FALSE) { base::try(base::stop(e)) } } })}), error = function(e) { { NULL NULL } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { { if (FALSE) { NULL base::try(base::stop(e)) } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { NULL { } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}) NULL
> test_loo_predictive_metric.R: NULLAn irrecoverable exception occurred. R is aborting now ...
> test_loo_predictive_metric.R: } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()})
> test_loo_predictive_metric.R: An irrecoverable exception occurred. R is aborting now ...
Saving _problems/test_loo_predictive_metric-4.R
[ FAIL 2 | WARN 1 | SKIP 34 | PASS 847 ]
══ Skipped tests (34) ══════════════════════════════════════════════════════════
• On CRAN (32): 'test_loo_subsampling_cases.R:4:3',
'test_loo_subsampling_cases.R:256:3', 'test_E_loo.R:134:1',
'test_E_loo.R:142:1', 'test_compare.R:91:1', 'test_compare.R:122:1',
'test_compare.R:160:1', 'test_crps.R:27:1',
'test_deprecated_extractors.R:8:1', 'test_deprecated_extractors.R:106:1',
'test_gpdfit.R:1:1', 'test_kfold_helpers.R:139:1',
'test_loo_and_waic.R:23:1', 'test_loo_moment_matching.R:157:1',
'test_loo_moment_matching.R:247:1', 'test_loo_moment_matching.R:365:1',
'test_model_weighting.R:69:1', 'test_print_plot.R:41:1',
'test_print_plot.R:45:1', 'test_print_plot.R:151:1',
'test_print_plot.R:169:1', 'test_print_plot.R:175:1',
'test_print_plot.R:181:1', 'test_psis.R:13:1', 'test_psis.R:39:1',
'test_psislw.R:15:1', 'test_relative_eff.R:7:1', 'test_relative_eff.R:43:3',
'test_loo_subsampling.R:896:3', 'test_loo_subsampling.R:1077:3',
'test_tisis.R:76:1', 'test_tisis.R:213:1'
• Sys.info()[["sysname"]] == "Darwin" && R.version$arch == "aarch64" is TRUE
(2): 'test_loo_moment_matching.R:468:3', 'test_psis.R:157:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_loo_and_waic.R:30:3'): loo with cores=1 and cores=2 gives same results ──
Error in `vapply(x, FUN = match.arg(fun), FUN.VALUE = fun_val, item)`: values must be length 1000,
but FUN(X[[1]]) result is length 0
Backtrace:
▆
1. ├─base::suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2)) at test_loo_and_waic.R:30:3
2. │ └─base::withCallingHandlers(...)
3. ├─loo::loo(LLarr, r_eff = r_eff_arr, cores = 2)
4. └─loo::loo.array(LLarr, r_eff = r_eff_arr, cores = 2)
5. └─loo:::importance_sampling.array(...)
6. └─loo:::do_importance_sampling(...)
7. └─loo:::psis_apply(lw_list, "log_weights", fun_val = numeric(S))
8. └─base::vapply(x, FUN = match.arg(fun), FUN.VALUE = fun_val, item)
── Error ('test_loo_predictive_metric.R:4:1'): (code run outside of `test_that()`) ──
Error in `vapply(x, FUN = match.arg(fun), FUN.VALUE = fun_val, item)`: values must be length 1000,
but FUN(X[[1]]) result is length 0
Backtrace:
▆
1. ├─loo::psis(-LL, r_eff = r_eff, cores = 2) at test_loo_predictive_metric.R:4:1
2. └─loo:::psis.matrix(-LL, r_eff = r_eff, cores = 2)
3. └─loo:::importance_sampling.matrix(...)
4. └─loo:::do_importance_sampling(...)
5. └─loo:::psis_apply(lw_list, "log_weights", fun_val = numeric(S))
6. └─base::vapply(x, FUN = match.arg(fun), FUN.VALUE = fun_val, item)
[ FAIL 2 | WARN 1 | SKIP 34 | PASS 847 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-macos-arm64