Last updated on 2026-07-18 18:50:31 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 | 10.00 | 157.00 | 167.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 | 150.00 | 162.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 | 14.00 | 179.00 | 193.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:
> test_loo_and_waic.R: Traceback:
> test_loo_and_waic.R: 1: 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)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:
> test_loo_and_waic.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 4:
> test_loo_and_waic.R: psis_smooth_tail(lw_tail, cutoff)10:
> test_loo_and_waic.R: tryCatchList(expr, classes, parentenv, handlers) 5:
> test_loo_and_waic.R: is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])11:
> test_loo_and_waic.R: tryCatch(expr, error = function(e) { 6: call <- conditionCall(e)FUN(X[[i]], ...) if (!is.null(call)) {
> test_loo_and_waic.R: if (identical(call[[1L]], quote(doTryCatch))) 7: 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) lapply(X = S, FUN = FUN, ...)
> test_loo_and_waic.R: 8: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 10: tryCatchList(expr, classes, parentenv, handlers) 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:
> test_loo_and_waic.R: 11: 12: tryCatch(expr, error = function(e) {try(lapply(X = S, FUN = FUN, ...), silent = TRUE) call <- conditionCall(e)
> test_loo_and_waic.R: if (!is.null(call)) {13: if (identical(call[[1L]], quote(doTryCatch))) sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) call <- sys.call(-4L)
> test_loo_and_waic.R: dcall <- deparse(call, nlines = 1L)14: prefix <- paste("Error in", dcall, ": ")FUN(X[[i]], ...) LONG <- 75L
> test_loo_and_waic.R: sm <- strsplit(conditionMessage(e), "\n")[[1L]]15: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")lapply(seq_len(cores), inner.do) if (is.na(w))
> test_loo_and_waic.R: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : "16: msg <- paste0(prefix, conditionMessage(e), "\n")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) .Internal(seterrmessage(msg[1L]))
> test_loo_and_waic.R: 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: 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: 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, method = method)
> test_loo_and_waic.R: 18: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, 18: method = is_method)importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores,
> test_loo_and_waic.R: method = is_method)19:
> test_loo_and_waic.R: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)19:
> test_loo_and_waic.R: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)20:
> test_loo_and_waic.R: loo(LLarr, r_eff = r_eff_arr, cores = 2)20:
> test_loo_and_waic.R: loo(LLarr, r_eff = r_eff_arr, cores = 2)
> test_loo_and_waic.R: 21: withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning"))
> test_loo_and_waic.R: 21: withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning"))
> test_loo_and_waic.R: 22: suppressWarnings(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))23:
> test_loo_and_waic.R: eval(code, test_env)23:
> test_loo_and_waic.R: eval(code, test_env)24: eval(code, test_env)
> test_loo_and_waic.R: 25:
> test_loo_and_waic.R: withCallingHandlers({
> test_loo_and_waic.R: 24: eval(code, test_env)
> test_loo_and_waic.R: 25: 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) { 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() skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { 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_error, interrupt = handle_interrupt)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 26: 26: doTryCatch(return(expr), name, parentenv, handler)doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 27: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R:
> test_loo_and_waic.R: 28: 28: tryCatchList(expr, classes, parentenv, handlers)tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 29: 29: tryCatch(withCallingHandlers({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) { eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } skip_empty() else if (!new_expectations && skip_on_empty) { } skip_empty()}, expectation = handle_expectation, packageNotFoundError = function(e) { } if (on_cran()) {}, expectation = handle_expectation, packageNotFoundError = function(e) { skip(paste0("{", e$package, "} is not installed.")) if (on_cran()) { } skip(paste0("{", e$package, "} is not installed."))}, snapshot_on_cran = function(cnd) { } snapshot_skipped <<- TRUE}, snapshot_on_cran = function(cnd) { invokeRestart("muffle_cran_snapshot") snapshot_skipped <<- TRUE}, skip = handle_skip, warning = handle_warning, message = handle_message, invokeRestart("muffle_cran_snapshot") error = handle_error, interrupt = handle_interrupt), error = handle_fatal)}, skip = handle_skip, warning = handle_warning, message = handle_message,
> test_loo_and_waic.R: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)30:
> test_loo_and_waic.R: doWithOneRestart(return(expr), restart)30:
> test_loo_and_waic.R: doWithOneRestart(return(expr), restart)31:
> test_loo_and_waic.R: withOneRestart(expr, restarts[[1L]])31:
> test_loo_and_waic.R: 32: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: 32: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations skip("On CRAN") if (snapshot_skipped) { } skip("On CRAN") else if (!new_expectations && skip_on_empty) { } skip_empty() else if (!new_expectations && skip_on_empty) { } skip_empty()}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } 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: }, 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), 33: test_code(code, parent.frame())
> test_loo_and_waic.R: 34: test_that("loo with cores=1 and cores=2 gives same results", { end_test = function() { loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, }) cores = 2))
> test_loo_and_waic.R: expect_equal(loo1$estimates, loo2$estimates)33: })test_code(code, parent.frame())
> test_loo_and_waic.R:
> test_loo_and_waic.R: 34: test_that("loo with cores=1 and cores=2 gives same results", { loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2)) expect_equal(loo1$estimates, loo2$estimates) })
> test_loo_and_waic.R: 35: eval(code, test_env)
> test_loo_and_waic.R: 36: eval(code, test_env)
> test_loo_and_waic.R: 37: 35: eval(code, test_env)
> test_loo_and_waic.R: 36: eval(code, test_env)
> test_loo_and_waic.R: withCallingHandlers({37: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations eval(code, test_env) if (snapshot_skipped) { new_expectations <- the$test_expectations > starting_expectations skip("On CRAN") if (snapshot_skipped) { } skip("On CRAN") else if (!new_expectations && skip_on_empty) { } skip_empty() else if (!new_expectations && skip_on_empty) { } skip_empty()}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { 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, error = handle_error, interrupt = handle_interrupt)
> test_loo_and_waic.R: 38: doTryCatch(return(expr), name, parentenv, handler)}, 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:
> 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: 39: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 40: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 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()41: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } }}, expectation = handle_expectation, packageNotFoundError = function(e) { else if (!new_expectations && skip_on_empty) { if (on_cran()) { skip_empty() skip(paste0("{", e$package, "} is not installed.")) }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } }}, snapshot_on_cran = function(cnd) {}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 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: 42: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_and_waic.R: 42:
> test_loo_and_waic.R: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]])43: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: 44: withRestarts(tryCatch(withCallingHandlers({
> test_loo_and_waic.R: eval(code, test_env)44: new_expectations <- the$test_expectations > starting_expectationswithRestarts(tryCatch(withCallingHandlers({ if (snapshot_skipped) { skip("On CRAN") } eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { 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), end_test = function() { })
> test_loo_and_waic.R: 45: test_code(code = exprs, env = env, reporter = get_reporter() %||% }, snapshot_on_cran = function(cnd) { StopReporter$new()) snapshot_skipped <<- TRUE
> test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")46: source_file(path, env = env(env), desc = desc, shuffle = shuffle, }, 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: 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: 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: 49: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 50: tryCatchList(expr, classes, parentenv, handlers)
> 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: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 50: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 51: 51: tryCatch(code, testthat_abort_reporter = function(cnd) {tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") cat(conditionMessage(cnd), "\n") NULL NULL})})
> test_loo_and_waic.R:
> test_loo_and_waic.R: 52: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, with_reporter(multi, test_one_file(path, env = the$testing_env, shuffle = shuffle)) shuffle = shuffle))
> test_loo_and_waic.R:
> test_loo_and_waic.R: 53: asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_and_waic.R: 54: (function (path, shuffle) { asNamespace("testthat")$queue_task(path, 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) args <- lapply(args, enquote) .Internal(do.call(what, args, envir))})(base::quote(function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle)}), 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/RtmpkkOors/callr-fun-12f356aeb39da"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)53: asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 57: 54: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f356aeb39da"), (function (path, shuffle) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, { quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", asNamespace("testthat")$queue_task(path, shuffle) compress = FALSE)})(base::quote("test_loo_and_waic.R"), base::quote(FALSE))
> test_loo_and_waic.R:
> test_loo_and_waic.R: 58: 55: base::withCallingHandlers({(function (what, args, quote = FALSE, envir = parent.frame()) {{ NULL if (!is.list(args)) NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f356aeb39da"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", compress = FALSE) base::flush(base::stdout()) stop("second argument must be a list") if (quote) args <- lapply(args, enquote) .Internal(do.call(what, args, envir))})(base::quote(function (path, shuffle) { base::flush(base::stderr()) { NULL NULL } base::invisible() asNamespace("testthat")$queue_task(path, shuffle)}), 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/RtmpkkOors/callr-fun-12f356aeb39da"), 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)
> test_loo_and_waic.R: base::rm("__callr_dump__", envir = .GlobalEnv)57: } 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))base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f356aeb39da"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", compress = FALSE)
> test_loo_and_waic.R: 58: 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), ] }base::withCallingHandlers({ 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/RtmpkkOors/callr-rs-result-12f3579234e0c", ".error")) }}, interrupt = function(e) { } { base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f356aeb39da"), callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, err <- callr_data$err quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", if (FALSE) { compress = FALSE) base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::flush(base::stdout()) utils::dump.frames("__callr_dump__") base::flush(base::stderr()) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, { envir = callr_data) NULL base::rm("__callr_dump__", envir = .GlobalEnv) NULL } } e <- err$process_call(e) base::invisible() e2 <- err$new_error("error in callr subprocess")}, error = function(e) { class <- base::class { class(e2) <- base::c("callr_remote_error", class(e2)) callr_data <- base::as.environment("tools:callr")$`__callr_data__` e2 <- err$add_trace_back(e2) err <- callr_data$err cut <- base::which(e2$trace$scope == "global")[1] if (FALSE) { if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] }
> test_loo_and_waic.R: base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", ".error")) }}, callr_message = function(e) { base::try({ base::rm("__callr_dump__", envir = .GlobalEnv) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } pxlib <- callr_data$pxlib e <- err$process_call(e) if (base::is.null(e$code)) { e2 <- err$new_error("error in callr subprocess") e$code <- "301" class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2)) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, e2 <- err$add_trace_back(e2) NULL))) cut <- base::which(e2$trace$scope == "global")[1] data <- base::paste0(e$code, " ", base::nchar(msg), "\n", if (!base::is.na(cut)) { msg) e2$trace <- e2$trace[-(1:cut), ] 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 (callr_data$has_otel) { else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { callr_data$otel_span$record_exception(e2) base::invokeRestart("muffleMessage") } } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", ".error")) }}, interrupt = function(e) { { })})
> test_loo_and_waic.R: 59: doTryCatch(return(expr), name, parentenv, handler) 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)
> test_loo_and_waic.R: base::rm("__callr_dump__", envir = .GlobalEnv)60: }tryCatchOne(expr, names, parentenv, handlers[[1L]]) e <- err$process_call(e)
> test_loo_and_waic.R: e2 <- err$new_error("error in callr subprocess")61: class <- base::classtryCatchList(expr, names[-nh], parentenv, handlers[-nh]) 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_and_waic.R: 62: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 63: e2$trace <- e2$trace[-(1:cut), ]tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), } 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/RtmpkkOors/callr-rs-result-12f3579234e0c", names[nh], parentenv, handlers[[nh]]) ".error"))
> test_loo_and_waic.R: }64: }, callr_message = function(e) {tryCatchList(expr, classes, parentenv, handlers) base::try({
> test_loo_and_waic.R: callr_data <- base::as.environment("tools:callr")$`__callr_data__`65: pxlib <- callr_data$pxlibbase::tryCatch(base::withCallingHandlers({ if (base::is.null(e$code)) { { e$code <- "301" NULL } NULL msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, } NULL))) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f356aeb39da"), data <- base::paste0(e$code, " ", base::nchar(msg), "\n", base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, msg) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", if (callr_data$has_otel) { compress = FALSE) 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_and_waic.R: 59: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 60: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 61: base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL } 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) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv)tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
> 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]), 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({ } { NULL NULL } e <- err$process_call(e) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f356aeb39da"), e2 <- err$new_error("error in callr subprocess") base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 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/RtmpkkOors/callr-rs-result-12f3579234e0c", ".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) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { utils::dump.frames("__callr_dump__") NULL 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/RtmpkkOors/callr-rs-result-12f3579234e0c", ".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"
> test_loo_and_waic.R: } 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) { NULL } base::invisible()}, error = 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") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") { 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)}), error = function(e) { { NULL NULL } if (FALSE) { 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] base::try(base::stop(e)) if (!base::is.na(cut)) { } e2$trace <- e2$trace[-(1:cut), ] if (FALSE) { } base::q(save = "no", status = 1) if (callr_data$has_otel) { } callr_data$otel_span$record_exception(e2) base::invisible() }}, interrupt = function(e) { base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3579234e0c", { ".error")) NULL } NULL}, interrupt = function(e) { } { if (FALSE) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::q(save = "no", status = 1) err <- callr_data$err } if (FALSE) { base::invisible() 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)
> test_loo_and_waic.R: An irrecoverable exception occurred. R is aborting now ...
> test_loo_and_waic.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) 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/RtmpkkOors/callr-rs-result-12f3579234e0c", ".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: 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: 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)
> test_loo_predictive_metric.R: Traceback:
> test_loo_predictive_metric.R: if (!is.null(call)) { 1: outer(X, Y)
> test_loo_predictive_metric.R: if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") 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: 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], 5: type = "b")is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]) if (w > LONG)
> test_loo_predictive_metric.R: prefix <- paste0(prefix, "\n ") 6: }FUN(X[[i]], ...) else prefix <- "Error : "
> test_loo_predictive_metric.R: msg <- paste0(prefix, conditionMessage(e), "\n") 7: .Internal(seterrmessage(msg[1L]))lapply(X = S, FUN = FUN, ...) if (!silent && isTRUE(getOption("show.error.messages"))) {
> 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: cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})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
> test_loo_predictive_metric.R: 12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_predictive_metric.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 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_predictive_metric.R: 14: FUN(X[[i]], ...)
> test_loo_predictive_metric.R: 15: lapply(seq_len(cores), inner.do) else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)
> 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[, .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
> test_loo_predictive_metric.R: 12: 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: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)18:
> test_loo_predictive_metric.R: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, 13: method = "psis")
> test_loo_predictive_metric.R: 19: psis.matrix(-LL, r_eff = r_eff, cores = 2)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 20: 14: psis(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R: 21: eval(code, test_env)FUN(X[[i]], ...)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 22: 15: eval(code, test_env)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 23: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> 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: 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: 26: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 27: tryCatch(withCallingHandlers({ eval(code, test_env)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, new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() method = "psis") }
> test_loo_predictive_metric.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {19: if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {psis.matrix(-LL, r_eff = r_eff, cores = 2) 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), error = handle_fatal)
> test_loo_predictive_metric.R: 20: 28: psis(-LL, r_eff = r_eff, cores = 2)doWithOneRestart(return(expr), restart)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 21: 29: withOneRestart(expr, restarts[[1L]])
> test_loo_predictive_metric.R: 30: eval(code, test_env)withRestarts(tryCatch(withCallingHandlers({
> test_loo_predictive_metric.R: eval(code, test_env)22: new_expectations <- the$test_expectations > starting_expectationseval(code, test_env) if (snapshot_skipped) {
> test_loo_predictive_metric.R: skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty()23: }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 snapshot_skipped <<- TRUE if (snapshot_skipped) { invokeRestart("muffle_cran_snapshot") skip("On CRAN")}, skip = handle_skip, warning = handle_warning, message = handle_message, } error = handle_error, interrupt = handle_interrupt), error = handle_fatal), else if (!new_expectations && skip_on_empty) { end_test = function() { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) })
> test_loo_predictive_metric.R: 31: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
> test_loo_predictive_metric.R: }32: }, snapshot_on_cran = function(cnd) {source_file(path, env = env(env), desc = desc, shuffle = shuffle, snapshot_skipped <<- TRUE error_call = error_call) 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: 25: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 33: test_one_file(path, env = the$testing_env, shuffle = shuffle)
> test_loo_predictive_metric.R: 34: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 26: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 27: tryCatch(withCallingHandlers({
> test_loo_predictive_metric.R: 35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: 36: tryCatchList(expr, classes, parentenv, handlers) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) {
> test_loo_predictive_metric.R: 37: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {
> 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: 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) error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 40: 28: (function (path, shuffle) doWithOneRestart(return(expr), restart){
> test_loo_predictive_metric.R: 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()) {29: if (!is.list(args)) withOneRestart(expr, restarts[[1L]]) stop("second argument must be a list")
> test_loo_predictive_metric.R: if (quote) args <- lapply(args, enquote) .Internal(do.call(what, args, envir))30: })(base::quote(function (path, shuffle) withRestarts(tryCatch(withCallingHandlers({{ eval(code, test_env) asNamespace("testthat")$queue_task(path, shuffle) new_expectations <- the$test_expectations > starting_expectations}), base::quote(list("test_loo_predictive_metric.R", FALSE)), if (snapshot_skipped) { envir = base::quote(<environment>), quote = base::quote(TRUE)) skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }
> test_loo_predictive_metric.R: 42: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, }, expectation = handle_expectation, packageNotFoundError = function(e) { quote = TRUE) if (on_cran()) {
> test_loo_predictive_metric.R: 43: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), 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, base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", compress = FALSE)
> test_loo_predictive_metric.R: 44: base::withCallingHandlers({ error = handle_error, interrupt = handle_interrupt), error = handle_fatal), { end_test = function() { NULL }) NULL
> test_loo_predictive_metric.R: }31: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), test_code(code = exprs, env = env, reporter = get_reporter() %||% base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, StopReporter$new()) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727",
> test_loo_predictive_metric.R: compress = FALSE)32: base::flush(base::stdout()) base::flush(base::stderr()) { NULLsource_file(path, env = env(env), desc = desc, shuffle = shuffle, NULL error_call = error_call)
> test_loo_predictive_metric.R: 33: test_one_file(path, env = the$testing_env, shuffle = shuffle)
> test_loo_predictive_metric.R: 34: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 35: tryCatchOne(expr, names, parentenv, handlers[[1L]]) }
> test_loo_predictive_metric.R: base::invisible()36: }, error = function(e) {tryCatchList(expr, classes, parentenv, handlers) {
> test_loo_predictive_metric.R: callr_data <- base::as.environment("tools:callr")$`__callr_data__`37: err <- callr_data$errtryCatch(code, testthat_abort_reporter = function(cnd) { if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") cat(conditionMessage(cnd), "\n") NULL})
> test_loo_predictive_metric.R: 38:
> test_loo_predictive_metric.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv)with_reporter(multi, test_one_file(path, env = the$testing_env, shuffle = shuffle))
> test_loo_predictive_metric.R: 39: asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_predictive_metric.R: 40: }(function (path, shuffle) e <- err$process_call(e){ e2 <- err$new_error("error in callr subprocess") asNamespace("testthat")$queue_task(path, shuffle) class <- base::class})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE))
> test_loo_predictive_metric.R: 41: (function (what, args, quote = FALSE, envir = parent.frame()) 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 (!is.list(args)) if (callr_data$has_otel) { stop("second argument must be a list") if (quote) args <- lapply(args, enquote) .Internal(do.call(what, args, envir))})(base::quote(function (path, shuffle) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", ".error")) } asNamespace("testthat")$queue_task(path, shuffle)}, interrupt = function(e) {}), base::quote(list("test_loo_predictive_metric.R", FALSE)), { envir = base::quote(<environment>), quote = base::quote(TRUE)) callr_data <- base::as.environment("tools:callr")$`__callr_data__`
> test_loo_predictive_metric.R: err <- callr_data$err42: if (FALSE) {base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), 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/RtmpkkOors/callr-fun-12f35218e04be"), base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, utils::dump.frames("__callr_dump__") quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, compress = FALSE) envir = callr_data)
> test_loo_predictive_metric.R: base::rm("__callr_dump__", envir = .GlobalEnv)44: }base::withCallingHandlers({ 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] { NULL NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, if (!base::is.na(cut)) { quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", 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/RtmpkkOors/callr-rs-result-12f3572d96727", ".error")) }}, callr_message = function(e) { base::try({ NULL } base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` 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, 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::invokeRestart("cli_message_handled") base::rm("__callr_dump__", envir = .GlobalEnv) } } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { 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] base::invokeRestart("muffleMessage") } })})
> test_loo_predictive_metric.R: 45: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 46: if (!base::is.na(cut)) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) e2$trace <- e2$trace[-(1:cut), ]
> test_loo_predictive_metric.R: }47: if (callr_data$has_otel) {tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
> test_loo_predictive_metric.R: 48: doTryCatch(return(expr), name, parentenv, handler) callr_data$otel_span$record_exception(e2)
> test_loo_predictive_metric.R: }49: base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
> test_loo_predictive_metric.R: 50: ".error"))tryCatchList(expr, classes, parentenv, handlers) }
> test_loo_predictive_metric.R: }, interrupt = function(e) {51: {base::tryCatch(base::withCallingHandlers({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` { err <- callr_data$err NULL NULL } 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::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), } base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, e <- err$process_call(e) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", e2 <- err$new_error("error in callr subprocess") compress = FALSE) class <- base::class base::flush(base::stdout()) class(e2) <- base::c("callr_remote_error", class(e2)) base::flush(base::stderr()) e2 <- err$add_trace_back(e2) { NULL NULL } base::invisible()}, error = function(e) { 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) { 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::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", ".error")) }}, callr_message = function(e) { base::try({ base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, callr_data <- base::as.environment("tools:callr")$`__callr_data__` envir = callr_data) pxlib <- callr_data$pxlib base::rm("__callr_dump__", envir = .GlobalEnv) if (base::is.null(e$code)) { }
> test_loo_predictive_metric.R: e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, e <- err$process_call(e) NULL))) e2 <- err$new_error("error in callr subprocess") data <- base::paste0(e$code, " ", base::nchar(msg), "\n", class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) 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) cut <- base::which(e2$trace$scope == "global")[1] if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { if (!base::is.na(cut)) { base::invokeRestart("cli_message_handled") e2$trace <- e2$trace[-(1:cut), ] } } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { if (callr_data$has_otel) { base::invokeRestart("muffleMessage") callr_data$otel_span$record_exception(e2) } } }) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", ".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)})
> test_loo_predictive_metric.R: 45: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 46: utils::dump.frames("__callr_dump__")tryCatchOne(expr, names, parentenv, handlers[[1L]]) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`,
> test_loo_predictive_metric.R: envir = callr_data)47: base::rm("__callr_dump__", envir = .GlobalEnv)tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) }
> test_loo_predictive_metric.R: e <- err$process_call(e)48: e2 <- err$new_error("error in callr subprocess")doTryCatch(return(expr), name, parentenv, handler) 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), ]
> test_loo_predictive_metric.R: 49: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
> test_loo_predictive_metric.R: }50: if (callr_data$has_otel) {tryCatchList(expr, classes, parentenv, handlers) callr_data$otel_span$record_exception(e2)
> test_loo_predictive_metric.R: }51: base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", base::tryCatch(base::withCallingHandlers({ ".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)) { NULL e$code <- "301" NULL } } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpkkOors/callr-fun-12f35218e04be"), NULL))) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, data <- base::paste0(e$code, " ", base::nchar(msg), "\n", quote = TRUE), file = "/Volumes/Temp/tmp/RtmpkkOors/callr-rs-result-12f3572d96727", msg) compress = FALSE) if (callr_data$has_otel) { base::flush(base::stdout()) callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) base::flush(base::stderr()) { NULL NULL } base::invisible() 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) { { 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) } })}), error = function(e) { { NULL NULL base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class } if (FALSE) { base::try(base::stop(e)) } if (FALSE) { 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), ] base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { { 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/RtmpkkOors/callr-rs-result-12f3572d96727", NULL } if (FALSE) { base::q(save = "no", status = 1) } ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err base::invisible() if (FALSE) {}) base::assign(".Traceback", base::.traceback(4), envir = callr_data)
> test_loo_predictive_metric.R: utils::dump.frames("__callr_dump__")An irrecoverable exception occurred. R is aborting now ...
> 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)) 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/RtmpkkOors/callr-rs-result-12f3572d96727", ".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_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