Last updated on 2026-07-12 17:52:03 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 2.10.0 | 7.14 | 139.44 | 146.58 | OK | |
| r-devel-linux-x86_64-debian-gcc | 2.10.0 | 4.69 | 99.46 | 104.15 | OK | |
| r-devel-linux-x86_64-fedora-clang | 2.10.0 | 11.00 | 391.49 | 402.49 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 2.10.0 | 10.00 | 401.80 | 411.80 | OK | |
| r-devel-windows-x86_64 | 2.10.0 | 10.00 | 162.00 | 172.00 | OK | |
| r-patched-linux-x86_64 | 2.10.0 | 7.72 | 134.77 | 142.49 | 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 | 13.00 | 147.00 | 160.00 | OK | |
| r-oldrel-macos-arm64 | 2.10.0 | 2.00 | 35.00 | 37.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 | 13.00 | 183.00 | 196.00 | OK |
Version: 2.10.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [13s/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: lapply(X = S, FUN = FUN, ...)
> test_loo_and_waic.R: 8: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 10: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 11: 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)
> 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) 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 ") }
> test_loo_and_waic.R: else prefix <- "Error : " 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]) msg <- paste0(prefix, conditionMessage(e), "\n")
> test_loo_and_waic.R: .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))})
> test_loo_and_waic.R: 6: FUN(X[[i]], ...)
> test_loo_and_waic.R: 7: lapply(X = S, FUN = FUN, ...)12:
> test_loo_and_waic.R: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 8:
> test_loo_and_waic.R: doTryCatch(return(expr), name, parentenv, handler)13:
> test_loo_and_waic.R: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 9:
> test_loo_and_waic.R: tryCatchOne(expr, names, parentenv, handlers[[1L]])14:
> test_loo_and_waic.R: FUN(X[[i]], ...)10:
> test_loo_and_waic.R: tryCatchList(expr, classes, parentenv, handlers)15:
> test_loo_and_waic.R: lapply(seq_len(cores), inner.do)11:
> test_loo_and_waic.R: tryCatch(expr, error = function(e) {16: call <- conditionCall(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_and_waic.R: 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))})
> test_loo_and_waic.R: 12: 17: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)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,
> test_loo_and_waic.R: method = is_method)13:
> test_loo_and_waic.R: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))19:
> test_loo_and_waic.R: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)14:
> test_loo_and_waic.R: FUN(X[[i]], ...)20:
> test_loo_and_waic.R: loo(LLarr, r_eff = r_eff_arr, cores = 2)15:
> test_loo_and_waic.R: lapply(seq_len(cores), inner.do)21:
> test_loo_and_waic.R: withCallingHandlers(expr, warning = function(w) if (inherits(w, 16: classes)) tryInvokeRestart("muffleWarning"))
> test_loo_and_waic.R: 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, method = method)
> test_loo_and_waic.R: 18: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, method = is_method)
> test_loo_and_waic.R: 19: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 22: suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2))
> test_loo_and_waic.R: 20: 23: loo(LLarr, r_eff = r_eff_arr, cores = 2)eval(code, test_env)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 21: 24: withCallingHandlers(expr, warning = function(w) if (inherits(w, eval(code, test_env) classes)) tryInvokeRestart("muffleWarning"))
> test_loo_and_waic.R:
> test_loo_and_waic.R: 25: 22: withCallingHandlers({suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2)) eval(code, test_env)
> test_loo_and_waic.R: new_expectations <- the$test_expectations > starting_expectations23: if (snapshot_skipped) {eval(code, test_env) skip("On CRAN")
> test_loo_and_waic.R: }24: else if (!new_expectations && skip_on_empty) {eval(code, test_env) skip_empty()
> test_loo_and_waic.R: }25: }, expectation = handle_expectation, packageNotFoundError = function(e) {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) }
> test_loo_and_waic.R: }, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {26: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]]) snapshot_skipped <<- TRUE
> test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> test_loo_and_waic.R: 26: 28: doTryCatch(return(expr), name, parentenv, handler)tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 27: 29: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {
> test_loo_and_waic.R: skip("On CRAN")28: }tryCatchList(expr, classes, parentenv, handlers) else if (!new_expectations && skip_on_empty) {
> test_loo_and_waic.R: skip_empty()29: }tryCatch(withCallingHandlers({}, expectation = handle_expectation, packageNotFoundError = function(e) { eval(code, test_env) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } snapshot_skipped <<- TRUE else if (!new_expectations && skip_on_empty) { invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_and_waic.R: skip_empty()30: }doWithOneRestart(return(expr), restart)}, expectation = handle_expectation, packageNotFoundError = function(e) {
> test_loo_and_waic.R: 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)31: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: 32: withRestarts(tryCatch(withCallingHandlers({
> test_loo_and_waic.R: eval(code, test_env)30: new_expectations <- the$test_expectations > starting_expectationsdoWithOneRestart(return(expr), restart) if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) {
> test_loo_and_waic.R: 31: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: skip_empty()32: }withRestarts(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), end_test = function() { })
> test_loo_and_waic.R: }33: }, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {test_code(code, parent.frame()) snapshot_skipped <<- TRUE
> test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")34: }, skip = handle_skip, warning = handle_warning, message = handle_message, test_that("loo with cores=1 and cores=2 gives same results", error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
> test_loo_and_waic.R: { loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2)) expect_equal(loo1$estimates, loo2$estimates)33: })test_code(code, parent.frame())
> test_loo_and_waic.R: 34: test_that("loo with cores=1 and cores=2 gives same results", {
> test_loo_and_waic.R: loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, 35: cores = 2))eval(code, test_env) expect_equal(loo1$estimates, loo2$estimates) })
> test_loo_and_waic.R: 35:
> test_loo_and_waic.R: eval(code, test_env)36: eval(code, test_env)
> test_loo_and_waic.R: 37: withCallingHandlers({
> test_loo_and_waic.R: eval(code, test_env)36: eval(code, test_env)
> test_loo_and_waic.R: 37: withCallingHandlers({ new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } 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.")) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot")}, snapshot_on_cran = function(cnd) {}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> test_loo_and_waic.R: 38: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 39: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: snapshot_skipped <<- TRUE40: invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> test_loo_and_waic.R: 38: tryCatchList(expr, classes, parentenv, handlers)doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 41: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations
> test_loo_and_waic.R: 39: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 40: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 41: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") 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() }
> test_loo_and_waic.R: }, 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")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 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")42: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]]) }
> test_loo_and_waic.R: else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {44: skip(paste0("{", e$package, "} is not installed."))withRestarts(tryCatch(withCallingHandlers({ } eval(code, test_env)}, snapshot_on_cran = function(cnd) { new_expectations <- the$test_expectations > starting_expectations snapshot_skipped <<- TRUE if (snapshot_skipped) { 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: 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, 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: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 49: skip("On CRAN") } else if (!new_expectations && skip_on_empty) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip_empty()
> test_loo_and_waic.R: }50: }, expectation = handle_expectation, packageNotFoundError = function(e) {tryCatchList(expr, classes, parentenv, handlers) if (on_cran()) {
> test_loo_and_waic.R: skip(paste0("{", e$package, "} is not installed."))51: }tryCatch(code, testthat_abort_reporter = function(cnd) {}, snapshot_on_cran = function(cnd) { cat(conditionMessage(cnd), "\n") 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), NULL})
> test_loo_and_waic.R: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, end_test = function() { })
> test_loo_and_waic.R: 45: shuffle = shuffle))
> test_loo_and_waic.R: 53: asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_and_waic.R: 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, 54: error_call = error_call)(function (path, shuffle)
> test_loo_and_waic.R: {47: asNamespace("testthat")$queue_task(path, shuffle)test_one_file(path, env = the$testing_env, shuffle = shuffle)})(base::quote("test_loo_and_waic.R"), base::quote(FALSE))
> test_loo_and_waic.R:
> test_loo_and_waic.R: 48: 55: doTryCatch(return(expr), name, parentenv, handler)(function (what, args, quote = FALSE, envir = parent.frame())
> test_loo_and_waic.R: {49: if (!is.list(args)) tryCatchOne(expr, names, parentenv, handlers[[1L]]) stop("second argument must be a list")
> test_loo_and_waic.R: if (quote) 50: args <- lapply(args, enquote)tryCatchList(expr, classes, parentenv, handlers) .Internal(do.call(what, args, envir))
> test_loo_and_waic.R: })(base::quote(function (path, shuffle) 51: {tryCatch(code, testthat_abort_reporter = function(cnd) { asNamespace("testthat")$queue_task(path, shuffle) cat(conditionMessage(cnd), "\n")}), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_and_waic.R: 56: 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)base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 54: (function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle)57: })(base::quote("test_loo_and_waic.R"), base::quote(FALSE))base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"),
> test_loo_and_waic.R: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 55: quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", (function (what, args, quote = FALSE, envir = parent.frame()) compress = FALSE){
> test_loo_and_waic.R: if (!is.list(args)) 58: stop("second argument must be a list")base::withCallingHandlers({ if (quote) { args <- lapply(args, enquote) NULL .Internal(do.call(what, args, envir)) NULL})(base::quote(function (path, shuffle) }{ base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), asNamespace("testthat")$queue_task(path, shuffle) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, }), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_and_waic.R: 56: quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) {base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), NULL base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, NULL quote = TRUE) }
> test_loo_and_waic.R: base::invisible()57: }, error = function(e) {base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, callr_data <- base::as.environment("tools:callr")$`__callr_data__` quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", compress = FALSE)
> test_loo_and_waic.R: 58: err <- callr_data$errbase::withCallingHandlers({ if (FALSE) { { base::assign(".Traceback", base::.traceback(4), envir = callr_data) NULL utils::dump.frames("__callr_dump__") NULL base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), base::rm("__callr_dump__", envir = .GlobalEnv) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, } quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", e <- err$process_call(e) compress = FALSE) e2 <- err$new_error("error in callr subprocess") base::flush(base::stdout()) class <- base::class base::flush(base::stderr()) class(e2) <- base::c("callr_remote_error", class(e2)) { e2 <- err$add_trace_back(e2) NULL cut <- base::which(e2$trace$scope == "global")[1] NULL if (!base::is.na(cut)) { } e2$trace <- e2$trace[-(1:cut), ] base::invisible() }}, error = function(e) { if (callr_data$has_otel) { { callr_data$otel_span$record_exception(e2) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } err <- callr_data$err base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", if (FALSE) { ".error")) base::assign(".Traceback", base::.traceback(4), envir = callr_data) }
> test_loo_and_waic.R: utils::dump.frames("__callr_dump__")}, interrupt = function(e) { { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, callr_data <- base::as.environment("tools:callr")$`__callr_data__` envir = callr_data) err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::rm("__callr_dump__", envir = .GlobalEnv) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") 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) 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] 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) } if (!base::is.na(cut)) { base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } ".error")) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", ".error")) }}, callr_message = function(e) { }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err base::try({ if (FALSE) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` 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" envir = callr_data) } base::rm("__callr_dump__", envir = .GlobalEnv) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, } NULL))) e <- err$process_call(e) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", e2 <- err$new_error("error in callr subprocess") msg) class <- base::class if (callr_data$has_otel) { class(e2) <- base::c("callr_remote_error", class(e2)) callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) e2 <- err$add_trace_back(e2) } cut <- base::which(e2$trace$scope == "global")[1] pxlib$write_fd(3L, data) if (!base::is.na(cut)) { if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { e2$trace <- e2$trace[-(1:cut), ] base::invokeRestart("cli_message_handled") } } if (callr_data$has_otel) { else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", base::invokeRestart("muffleMessage") ".error")) } } })}, callr_message = function(e) {}) base::try({
> test_loo_and_waic.R: callr_data <- base::as.environment("tools:callr")$`__callr_data__`59: pxlib <- callr_data$pxlibdoTryCatch(return(expr), name, parentenv, handler) if (base::is.null(e$code)) {
> test_loo_and_waic.R: e$code <- "301"60: }tryCatchOne(expr, names, parentenv, handlers[[1L]]) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e,
> test_loo_and_waic.R: NULL)))61: data <- base::paste0(e$code, " ", base::nchar(msg), "\n", tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) msg)
> test_loo_and_waic.R: if (callr_data$has_otel) {62: callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code))doTryCatch(return(expr), name, parentenv, handler) }
> test_loo_and_waic.R: pxlib$write_fd(3L, data)63: if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) {tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), base::invokeRestart("cli_message_handled") names[nh], parentenv, handlers[[nh]]) }
> test_loo_and_waic.R: else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) {64: base::invokeRestart("muffleMessage")tryCatchList(expr, classes, parentenv, handlers) }
> test_loo_and_waic.R: })65: })base::tryCatch(base::withCallingHandlers({
> test_loo_and_waic.R: {59: NULLdoTryCatch(return(expr), name, parentenv, handler) NULL
> test_loo_and_waic.R: }60: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", compress = FALSE)tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 61: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
> test_loo_and_waic.R: base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL62: }doTryCatch(return(expr), name, parentenv, handler) base::invisible()
> test_loo_and_waic.R: }, error = function(e) {63: {tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), callr_data <- base::as.environment("tools:callr")$`__callr_data__` names[nh], parentenv, handlers[[nh]]) err <- callr_data$err
> test_loo_and_waic.R: if (FALSE) {64: base::assign(".Traceback", base::.traceback(4), envir = callr_data)tryCatchList(expr, classes, parentenv, handlers) utils::dump.frames("__callr_dump__")
> test_loo_and_waic.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 65: envir = callr_data)base::tryCatch(base::withCallingHandlers({ base::rm("__callr_dump__", envir = .GlobalEnv) { } NULL e <- err$process_call(e) NULL e2 <- err$new_error("error in callr subprocess") } class <- base::class base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc73ff939d"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", compress = FALSE) base::flush(base::stdout()) class(e2) <- base::c("callr_remote_error", class(e2)) base::flush(base::stderr()) e2 <- err$add_trace_back(e2) { cut <- base::which(e2$trace$scope == "global")[1] NULL if (!base::is.na(cut)) { NULL e2$trace <- e2$trace[-(1:cut), ] } } base::invisible() if (callr_data$has_otel) {}, error = function(e) { callr_data$otel_span$record_exception(e2) { } callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", ".error")) }}, interrupt = function(e) { { err <- callr_data$err callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (FALSE) { err <- callr_data$err base::assign(".Traceback", base::.traceback(4), envir = callr_data) if (FALSE) { utils::dump.frames("__callr_dump__") base::assign(".Traceback", base::.traceback(4), envir = callr_data)
> test_loo_and_waic.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 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) 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) 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) { cut <- base::which(e2$trace$scope == "global")[1] callr_data$otel_span$record_exception(e2) if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", ".error")) callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc103463ea", ".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)) {}, interrupt = function(e) { e$code <- "301" { } callr_data <- base::as.environment("tools:callr")$`__callr_data__` msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, err <- callr_data$err NULL))) if (FALSE) { data <- base::paste0(e$code, " ", base::nchar(msg), "\n", base::assign(".Traceback", base::.traceback(4), envir = callr_data) msg) utils::dump.frames("__callr_dump__") if (callr_data$has_otel) { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 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"))) { envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") base::invokeRestart("cli_message_handled") class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2)) else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { e2 <- err$add_trace_back(e2) base::invokeRestart("muffleMessage") cut <- base::which(e2$trace$scope == "global")[1] } if (!base::is.na(cut)) { }) e2$trace <- e2$trace[-(1:cut), ]}), error = function(e) { { NULL NULL } } 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/RtmpXLQZGz/callr-rs-result-157dc103463ea", if (FALSE) { ".error")) base::try(base::stop(e)) } }}, callr_message = function(e) { if (FALSE) { base::try({ base::q(save = "no", status = 1) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } pxlib <- callr_data$pxlib base::invisible() if (base::is.null(e$code)) {}, interrupt = function(e) { 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", if (FALSE) { msg) base::q(save = "no", status = 1) 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::invisible()})
> test_loo_and_waic.R: An irrecoverable exception occurred. R is aborting now ...
> test_loo_and_waic.R: 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: address 0x110, cause 'invalid permissions'
> 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:
> test_loo_predictive_metric.R: Traceback:
> 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: 7: lapply(X = S, FUN = FUN, ...)
> test_loo_predictive_metric.R: 8: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 10: tryCatchList(expr, classes, parentenv, handlers)
> 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) 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)) 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: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") 4: }psis_smooth_tail(lw_tail, cutoff) else prefix <- "Error : "
> 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: msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings())FUN(X[[i]], ...)
> test_loo_predictive_metric.R: 7: lapply(X = S, FUN = FUN, ...)
> test_loo_predictive_metric.R: } 8: invisible(structure(msg, class = "try-error", condition = e))doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 10: tryCatchList(expr, classes, parentenv, handlers)})
> test_loo_predictive_metric.R: 11: tryCatch(expr, error = function(e) {
> test_loo_predictive_metric.R: call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_predictive_metric.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
> test_loo_predictive_metric.R: call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]14: FUN(X[[i]], ...)
> test_loo_predictive_metric.R: 15:
> test_loo_predictive_metric.R: lapply(seq_len(cores), inner.do)
> test_loo_predictive_metric.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_predictive_metric.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, method = method)
> test_loo_predictive_metric.R: 18: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, method = "psis")
> test_loo_predictive_metric.R: 19: psis.matrix(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R: 20: psis(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R: 21: eval(code, test_env) 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: 22: eval(code, test_env)
> test_loo_predictive_metric.R: 23: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations type = "b") if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() if (w > LONG) }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L]))}, 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)
> test_loo_predictive_metric.R: if (!silent && isTRUE(getOption("show.error.messages"))) {24: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 25: cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
> test_loo_predictive_metric.R: tryCatchOne(expr, names, parentenv, handlers[[1L]])12:
> test_loo_predictive_metric.R: 26: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 27: tryCatch(withCallingHandlers({try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_predictive_metric.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
> test_loo_predictive_metric.R: 14: eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) {FUN(X[[i]], ...) skip_empty()
> test_loo_predictive_metric.R: }15: lapply(seq_len(cores), inner.do)
> test_loo_predictive_metric.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_predictive_metric.R: }, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE17: invokeRestart("muffle_cran_snapshot")do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_predictive_metric.R: 28: method = method)doWithOneRestart(return(expr), restart)
> test_loo_predictive_metric.R: 18: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, method = "psis")
> test_loo_predictive_metric.R: 19:
> test_loo_predictive_metric.R: psis.matrix(-LL, r_eff = r_eff, cores = 2)29: withOneRestart(expr, restarts[[1L]])
> test_loo_predictive_metric.R: 30: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env)
> test_loo_predictive_metric.R: 20: psis(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R: 21: new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty()eval(code, test_env) }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))
> test_loo_predictive_metric.R: 22: eval(code, test_env)
> test_loo_predictive_metric.R: 23: withCallingHandlers({ } eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {}, 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() { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() } })}, expectation = handle_expectation, packageNotFoundError = function(e) {
> test_loo_predictive_metric.R: 31: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
> test_loo_predictive_metric.R: 32: if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
> test_loo_predictive_metric.R: 33: test_one_file(path, env = the$testing_env, shuffle = shuffle) snapshot_skipped <<- TRUE 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: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 34: 25: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 36: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 26: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 37: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL27: })tryCatch(withCallingHandlers({
> test_loo_predictive_metric.R: 38: with_reporter(multi, test_one_file(path, env = the$testing_env, shuffle = shuffle)) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") }
> test_loo_predictive_metric.R: 39: asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_predictive_metric.R: 40: else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {(function (path, shuffle) 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, { asNamespace("testthat")$queue_task(path, shuffle)})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE))
> test_loo_predictive_metric.R: 41: (function (what, args, quote = FALSE, envir = parent.frame()) error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_predictive_metric.R: 28: doWithOneRestart(return(expr), restart){ if (!is.list(args)) stop("second argument must be a list") if (quote) args <- lapply(args, enquote) .Internal(do.call(what, args, envir))
> test_loo_predictive_metric.R: })(base::quote(function (path, shuffle) 29: {withOneRestart(expr, restarts[[1L]])
> test_loo_predictive_metric.R: 30: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations asNamespace("testthat")$queue_task(path, shuffle)}), base::quote(list("test_loo_predictive_metric.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_predictive_metric.R: 42: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_predictive_metric.R: 43: if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty()base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", compress = FALSE)
> test_loo_predictive_metric.R: 44: base::withCallingHandlers({ { NULL }}, 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, NULL error = handle_error, interrupt = handle_interrupt), error = handle_fatal), } end_test = function() { })
> test_loo_predictive_metric.R: 31:
> test_loo_predictive_metric.R: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), test_code(code = exprs, env = env, reporter = get_reporter() %||% base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", StopReporter$new()) compress = FALSE)
> test_loo_predictive_metric.R: 32: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
> test_loo_predictive_metric.R: base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL }33: test_one_file(path, env = the$testing_env, shuffle = shuffle)
> test_loo_predictive_metric.R: 34: doTryCatch(return(expr), name, parentenv, handler) base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err
> test_loo_predictive_metric.R: if (FALSE) {35: base::assign(".Traceback", base::.traceback(4), envir = callr_data)tryCatchOne(expr, names, parentenv, handlers[[1L]]) utils::dump.frames("__callr_dump__")
> test_loo_predictive_metric.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) }36: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 37: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL 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)) {
> test_loo_predictive_metric.R: 38: with_reporter(multi, test_one_file(path, env = the$testing_env, shuffle = shuffle))
> test_loo_predictive_metric.R: 39: e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) }asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_predictive_metric.R: 40: (function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", ".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)})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE)) utils::dump.frames("__callr_dump__")
> test_loo_predictive_metric.R: 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))41: (function (what, args, quote = FALSE, envir = parent.frame()) { if (!is.list(args)) stop("second argument must be a list") 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 (quote) args <- lapply(args, enquote) .Internal(do.call(what, args, envir))})(base::quote(function (path, shuffle) { 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/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", asNamespace("testthat")$queue_task(path, shuffle)}), base::quote(list("test_loo_predictive_metric.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_predictive_metric.R: 42: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_predictive_metric.R: ".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, 43: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", 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)) } compress = FALSE) pxlib$write_fd(3L, data)
> test_loo_predictive_metric.R: if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") }44: base::withCallingHandlers({ { NULL NULL } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL
> test_loo_predictive_metric.R: 45: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 46: } base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$errtryCatchOne(expr, names, parentenv, handlers[[1L]]) if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`,
> test_loo_predictive_metric.R: 47: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
> test_loo_predictive_metric.R: 48: doTryCatch(return(expr), name, parentenv, handler) envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess")
> test_loo_predictive_metric.R: class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2)49: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
> test_loo_predictive_metric.R: cut <- base::which(e2$trace$scope == "global")[1]50: if (!base::is.na(cut)) {tryCatchList(expr, classes, parentenv, handlers) 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/RtmpXLQZGz/callr-rs-result-157dc390ba6d2",
> test_loo_predictive_metric.R: 51: base::tryCatch(base::withCallingHandlers({ { NULL NULL ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", compress = FALSE) 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::flush(base::stdout()) } base::flush(base::stderr()) e <- err$process_call(e) { NULL NULL
> test_loo_predictive_metric.R: 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) base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` 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) 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::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", ".error")) }}, callr_message = function(e) { base::try({ 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__` 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) 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) { 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/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", ".error")) }}, interrupt = function(e) { 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") } { 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__") else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, base::invokeRestart("muffleMessage") envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) } })})
> test_loo_predictive_metric.R: 45: doTryCatch(return(expr), name, parentenv, handler) e2 <- err$new_error("error in callr subprocess")
> test_loo_predictive_metric.R: 46: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 47: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
> test_loo_predictive_metric.R: class <- base::class48: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 49: 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), ] }tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), if (callr_data$has_otel) { names[nh], parentenv, handlers[[nh]]) callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", ".error"))
> test_loo_predictive_metric.R: 50: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 51: base::tryCatch(base::withCallingHandlers({ { } NULL}, callr_message = function(e) { NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpXLQZGz/callr-fun-157dc7e732331"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, base::try({ quote = TRUE), file = "/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL 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) { base::invisible() callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data)}, 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) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { utils::dump.frames("__callr_dump__") base::invokeRestart("cli_message_handled") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}), error = function(e) { e <- err$process_call(e) { e2 <- err$new_error("error in callr subprocess") NULL NULL } if (FALSE) { 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)) { base::try(base::stop(e)) e2$trace <- e2$trace[-(1:cut), ] } } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) if (FALSE) { } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { { NULL err <- callr_data$err NULL } if (FALSE) { 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::q(save = "no", status = 1) } base::invisible()})
> test_loo_predictive_metric.R: An irrecoverable exception occurred. R is aborting now ...
> test_loo_predictive_metric.R: } 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/RtmpXLQZGz/callr-rs-result-157dc390ba6d2", ".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)) {
> test_loo_predictive_metric.R: 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_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