Last updated on 2026-06-27 03:11:57 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 2.9.0 | 6.87 | 149.42 | 156.29 | OK | |
| r-devel-linux-x86_64-debian-gcc | 2.10.0 | 4.72 | 96.86 | 101.58 | 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 | 11.00 | 412.29 | 423.29 | OK | |
| r-devel-windows-x86_64 | 2.9.0 | 9.00 | 151.00 | 160.00 | OK | |
| r-patched-linux-x86_64 | 2.9.0 | 8.39 | 142.98 | 151.37 | OK | |
| r-release-linux-x86_64 | 2.9.0 | 6.40 | 141.42 | 147.82 | 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.9.0 | 10.00 | 148.00 | 158.00 | OK | |
| r-oldrel-macos-arm64 | 2.10.0 | 2.00 | 38.00 | 40.00 | ERROR | |
| r-oldrel-macos-x86_64 | 2.10.0 | 5.00 | 133.00 | 138.00 | OK | |
| r-oldrel-windows-x86_64 | 2.9.0 | 12.00 | 177.00 | 189.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)outer(X, Y)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 2: 2: -theta %o% x-theta %o% x
> test_loo_and_waic.R:
> test_loo_and_waic.R: 3: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)
> test_loo_and_waic.R:
> 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) 4: prefix <- paste("Error in", dcall, ": ")psis_smooth_tail(lw_tail, cutoff)
> test_loo_and_waic.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], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } 5: else prefix <- "Error : "is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]) msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings())
> test_loo_and_waic.R: 6: FUN(X[[i]], ...)
> test_loo_and_waic.R: 7: } invisible(structure(msg, class = "try-error", condition = e))})
> test_loo_and_waic.R: 12: lapply(X = S, FUN = FUN, ...)
> test_loo_and_waic.R: 8: doTryCatch(return(expr), name, parentenv, handler)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:
> 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) 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")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, method = is_method)
> test_loo_and_waic.R: 19: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)
> test_loo_and_waic.R: 20: 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")) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings())
> test_loo_and_waic.R: } invisible(structure(msg, class = "try-error", condition = e))})
> test_loo_and_waic.R: 12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
> test_loo_and_waic.R: 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:
> test_loo_and_waic.R: 22: suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2))
> test_loo_and_waic.R: 16: 23: eval(code, test_env)
> test_loo_and_waic.R: 24: eval(code, test_env)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:
> test_loo_and_waic.R: 25: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectationsdo_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: if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) {19: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)
> test_loo_and_waic.R: 20: loo(LLarr, r_eff = r_eff_arr, cores = 2) skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {
> test_loo_and_waic.R: 21: withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning"))
> test_loo_and_waic.R: skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")22: }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
> test_loo_and_waic.R: suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2))
> test_loo_and_waic.R: 23: eval(code, test_env)
> test_loo_and_waic.R: 26: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 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) {28: skip_empty()tryCatchList(expr, classes, parentenv, handlers) }
> test_loo_and_waic.R: }, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))29: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { 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)}, skip = handle_skip, warning = handle_warning, message = handle_message,
> test_loo_and_waic.R: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)26: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 30: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 31: withOneRestart(expr, restarts[[1L]])27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 28:
> test_loo_and_waic.R: 32: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 29: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } 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 else if (!new_expectations && skip_on_empty) { skip_empty() } 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() { })}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }
> test_loo_and_waic.R: 33: test_code(code, parent.frame())
> test_loo_and_waic.R: 34: test_that("loo with cores=1 and cores=2 gives same results", }, 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) loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr,
> test_loo_and_waic.R: cores = 2))30: doWithOneRestart(return(expr), restart) expect_equal(loo1$estimates, loo2$estimates) })
> test_loo_and_waic.R: 35: eval(code, test_env)
> test_loo_and_waic.R: 36:
> test_loo_and_waic.R: eval(code, test_env)
> test_loo_and_waic.R: 37: 31: withOneRestart(expr, restarts[[1L]])
> test_loo_and_waic.R: 32: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") }withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip("On CRAN") skip(paste0("{", e$package, "} is not installed."))
> 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)
> 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: 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") } else if (!new_expectations && skip_on_empty) { skip_empty() } else if (!new_expectations && skip_on_empty) { skip_empty() } }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() {
> test_loo_and_waic.R: 42: doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]]) })
> test_loo_and_waic.R: 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", {44: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2)) expect_equal(loo1$estimates, loo2$estimates) }}, 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: 35: eval(code, test_env)
> test_loo_and_waic.R:
> test_loo_and_waic.R: 45: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
> test_loo_and_waic.R: 46: 36: eval(code, test_env)
> test_loo_and_waic.R: 37: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN")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: } else if (!new_expectations && skip_on_empty) { skip_empty()48: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 49: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))50: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 51: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE})
> test_loo_and_waic.R: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, shuffle = shuffle))
> 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: 53: 38: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 39: tryCatchOne(expr, names, parentenv, handlers[[1L]])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)
> test_loo_and_waic.R: 40: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: args <- lapply(args, enquote)41: tryCatch(withCallingHandlers({ .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: eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") }base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_and_waic.R: 57: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", compress = FALSE)
> test_loo_and_waic.R: else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) {58: base::withCallingHandlers({ { NULL NULL } if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", compress = FALSE) base::flush(base::stdout()) 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: base::flush(base::stderr()) { NULL NULL } base::invisible()doWithOneRestart(return(expr), restart)
> test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]])}, error = function(e) {
> test_loo_and_waic.R: { 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__")44: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations
> test_loo_and_waic.R: if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
> 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) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv)
> 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: 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))50: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_and_waic.R: 51: tryCatch(code, testthat_abort_reporter = function(cnd) { 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), ] cat(conditionMessage(cnd), "\n") NULL})
> test_loo_and_waic.R: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, } 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/RtmpwcpLwB/callr-rs-result-12a3877918836", shuffle = shuffle))
> test_loo_and_waic.R: 53: asNamespace("testthat")$queue_task(path, shuffle) ".error"))
> test_loo_and_waic.R: }54: }, interrupt = function(e) {(function (path, shuffle) {{ 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__`, 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)) 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 stop("second argument must be a list") if (quote) args <- lapply(args, enquote) .Internal(do.call(what, args, envir)) class(e2) <- base::c("callr_remote_error", class(e2))})(base::quote(function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle) 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/RtmpwcpLwB/callr-rs-result-12a3877918836", }), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE))
> test_loo_and_waic.R: ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib56: if (base::is.null(e$code)) {base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_and_waic.R: 57: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })})
> test_loo_and_waic.R: 59: compress = FALSE)
> test_loo_and_waic.R: 58: base::withCallingHandlers({doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 60: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 61: tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) { NULL NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"),
> test_loo_and_waic.R: 62: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 63: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) {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: NULLbase::tryCatch(base::withCallingHandlers({ 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) { NULL NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) NULL e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] } if (!base::is.na(cut)) { base::invisible() e2$trace <- e2$trace[-(1:cut), ] }}, 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__") 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/RtmpwcpLwB/callr-rs-result-12a3877918836", ".error")) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data)}, interrupt = function(e) { base::rm("__callr_dump__", envir = .GlobalEnv)
> test_loo_and_waic.R: } e <- err$process_call(e) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { e2 <- err$new_error("error in callr subprocess") base::assign(".Traceback", base::.traceback(4), envir = callr_data) class <- base::class utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 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), ] } envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) 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/RtmpwcpLwB/callr-rs-result-12a3877918836", ".error")) e2 <- err$new_error("error in callr subprocess") }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err 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::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) } e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } e <- err$process_call(e) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", ".error")) } 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)) {}, 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" 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/RtmpwcpLwB/callr-rs-result-12a3877918836", ".error")) } } 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_message = function(e) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}) 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)) }
> test_loo_and_waic.R: 59: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 60: 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")tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_and_waic.R: 61: tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) } })}), error = function(e) { { NULL NULL } if (FALSE) { base::try(base::stop(e)) }
> test_loo_and_waic.R: 62: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_and_waic.R: 63: if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { {tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]])
> test_loo_and_waic.R: 64: NULLtryCatchList(expr, classes, parentenv, handlers) NULL
> test_loo_and_waic.R: 65: } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()})
> test_loo_and_waic.R: An irrecoverable exception occurred. R is aborting now ...
> test_loo_and_waic.R: base::tryCatch(base::withCallingHandlers({ { NULL NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a3828b0ece8"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", compress = FALSE) 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) } 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/RtmpwcpLwB/callr-rs-result-12a3877918836", ".error")) }}, interrupt = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err if (FALSE) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2) cut <- base::which(e2$trace$scope == "global")[1] if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a3877918836", ".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_and_waic.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_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) 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"))) {
> test_loo_predictive_metric.R: Traceback:
> test_loo_predictive_metric.R: cat(msg, file = outFile) 1: .Internal(printDeferredWarnings())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: invisible(structure(msg, class = "try-error", condition = e))FUN(X[[i]], ...)})
> 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))
> test_loo_predictive_metric.R: 14: FUN(X[[i]], ...)
> 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[,
> test_loo_predictive_metric.R: 7: lapply(X = S, FUN = FUN, ...)
> test_loo_predictive_metric.R: 8: i], tail_len_i = tail_len[i]))doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 17: 9: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, tryCatchOne(expr, names, parentenv, handlers[[1L]]) method = method)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 10: 18: tryCatchList(expr, classes, parentenv, handlers)importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores,
> test_loo_predictive_metric.R: method = "psis")11:
> test_loo_predictive_metric.R: tryCatch(expr, error = function(e) {19: call <- conditionCall(e)psis.matrix(-LL, r_eff = r_eff, cores = 2) if (!is.null(call)) {
> test_loo_predictive_metric.R: if (identical(call[[1L]], quote(doTryCatch))) 20: call <- sys.call(-4L)psis(-LL, r_eff = r_eff, cores = 2) dcall <- deparse(call, nlines = 1L)
> test_loo_predictive_metric.R: prefix <- paste("Error in", dcall, ": ")21: LONG <- 75Leval(code, test_env) sm <- strsplit(conditionMessage(e), "\n")[[1L]]
> test_loo_predictive_metric.R: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")22: if (is.na(w)) eval(code, test_env) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
> test_loo_predictive_metric.R: type = "b")23: if (w > LONG) withCallingHandlers({ prefix <- paste0(prefix, "\n ") eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations else prefix <- "Error : " if (snapshot_skipped) { msg <- paste0(prefix, conditionMessage(e), "\n") skip("On CRAN") .Internal(seterrmessage(msg[1L])) } if (!silent && isTRUE(getOption("show.error.messages"))) { else if (!new_expectations && skip_on_empty) { cat(msg, file = outFile) skip_empty() .Internal(printDeferredWarnings()) }
> test_loo_predictive_metric.R: } invisible(structure(msg, class = "try-error", condition = e))})
> 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))
> test_loo_predictive_metric.R: 14: FUN(X[[i]], ...)
> test_loo_predictive_metric.R: 15: lapply(seq_len(cores), inner.do)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))
> 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])) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,
> test_loo_predictive_metric.R: error = handle_error, interrupt = handle_interrupt)17:
> test_loo_predictive_metric.R: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, 24: method = method)doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 18: 25: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, tryCatchOne(expr, names, parentenv, handlers[[1L]]) method = "psis")
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 26: 19: tryCatchList(expr, classes, parentenv, handlers)psis.matrix(-LL, r_eff = r_eff, cores = 2)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 27: 20: tryCatch(withCallingHandlers({psis(-LL, r_eff = r_eff, cores = 2) eval(code, test_env)
> test_loo_predictive_metric.R: new_expectations <- the$test_expectations > starting_expectations21: if (snapshot_skipped) {eval(code, test_env) skip("On CRAN")
> test_loo_predictive_metric.R: }22: else if (!new_expectations && skip_on_empty) {eval(code, test_env) skip_empty()
> test_loo_predictive_metric.R: }23: }, 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), error = handle_fatal) }
> test_loo_predictive_metric.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {28: if (on_cran()) {doWithOneRestart(return(expr), restart) skip(paste0("{", e$package, "} is not installed."))
> test_loo_predictive_metric.R: }29: }, snapshot_on_cran = function(cnd) {withOneRestart(expr, restarts[[1L]]) snapshot_skipped <<- TRUE
> test_loo_predictive_metric.R: invokeRestart("muffle_cran_snapshot")30: }, skip = handle_skip, warning = handle_warning, message = handle_message, withRestarts(tryCatch(withCallingHandlers({ error = handle_error, interrupt = handle_interrupt) eval(code, test_env)
> test_loo_predictive_metric.R: new_expectations <- the$test_expectations > starting_expectations24: if (snapshot_skipped) {doTryCatch(return(expr), name, parentenv, handler) skip("On CRAN")
> test_loo_predictive_metric.R: }25: else if (!new_expectations && skip_on_empty) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
> test_loo_predictive_metric.R: 31: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 26: 32: tryCatchList(expr, classes, parentenv, handlers)source_file(path, env = env(env), desc = desc, shuffle = shuffle,
> test_loo_predictive_metric.R: error_call = error_call)27:
> test_loo_predictive_metric.R: tryCatch(withCallingHandlers({33: eval(code, test_env)test_one_file(path, env = the$testing_env, shuffle = shuffle) new_expectations <- the$test_expectations > starting_expectations
> test_loo_predictive_metric.R: if (snapshot_skipped) {34: skip("On CRAN")doTryCatch(return(expr), name, parentenv, handler) }
> test_loo_predictive_metric.R: else if (!new_expectations && skip_on_empty) {35: skip_empty()tryCatchOne(expr, names, parentenv, handlers[[1L]]) }
> test_loo_predictive_metric.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {36: if (on_cran()) {tryCatchList(expr, classes, parentenv, handlers) skip(paste0("{", e$package, "} is not installed."))
> test_loo_predictive_metric.R: }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 37: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)tryCatch(code, testthat_abort_reporter = function(cnd) {
> test_loo_predictive_metric.R: cat(conditionMessage(cnd), "\n")28: NULLdoWithOneRestart(return(expr), restart)})
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 29: 38: withOneRestart(expr, restarts[[1L]])with_reporter(multi, test_one_file(path, env = the$testing_env,
> test_loo_predictive_metric.R: shuffle = shuffle))30:
> test_loo_predictive_metric.R: withRestarts(tryCatch(withCallingHandlers({39: eval(code, test_env)asNamespace("testthat")$queue_task(path, shuffle) new_expectations <- the$test_expectations > starting_expectations
> test_loo_predictive_metric.R: 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."))40: }(function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle)})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE))
> test_loo_predictive_metric.R: }, snapshot_on_cran = function(cnd) {41: 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() {(function (what, args, quote = FALSE, envir = parent.frame()) }){
> test_loo_predictive_metric.R: if (!is.list(args)) 31: stop("second argument must be a list")test_code(code = exprs, env = env, reporter = get_reporter() %||% if (quote) StopReporter$new()) args <- lapply(args, enquote)
> test_loo_predictive_metric.R: .Internal(do.call(what, args, envir))32: })(base::quote(function (path, shuffle) source_file(path, env = env(env), desc = desc, shuffle = shuffle, { error_call = error_call) asNamespace("testthat")$queue_task(path, shuffle)
> test_loo_predictive_metric.R: }), base::quote(list("test_loo_predictive_metric.R", FALSE)), 33: envir = base::quote(<environment>), quote = base::quote(TRUE))test_one_file(path, env = the$testing_env, shuffle = shuffle)
> test_loo_predictive_metric.R:
> test_loo_predictive_metric.R: 42: 34: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_predictive_metric.R: 43: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> test_loo_predictive_metric.R: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", compress = FALSE)36: tryCatchList(expr, classes, parentenv, handlers)
> test_loo_predictive_metric.R: 37: tryCatch(code, testthat_abort_reporter = function(cnd) {
> test_loo_predictive_metric.R: cat(conditionMessage(cnd), "\n")44: NULLbase::withCallingHandlers({}) {
> test_loo_predictive_metric.R: NULL38: NULLwith_reporter(multi, test_one_file(path, env = the$testing_env, } shuffle = shuffle)) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"),
> test_loo_predictive_metric.R: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 39: quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", asNamespace("testthat")$queue_task(path, shuffle) compress = FALSE)
> test_loo_predictive_metric.R: base::flush(base::stdout())40: base::flush(base::stderr())(function (path, shuffle) {{ NULL asNamespace("testthat")$queue_task(path, shuffle) NULL})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE)) }
> test_loo_predictive_metric.R: base::invisible()41:
> test_loo_predictive_metric.R: }, error = function(e) {(function (what, args, quote = FALSE, envir = parent.frame()) { { if (!is.list(args)) callr_data <- base::as.environment("tools:callr")$`__callr_data__` stop("second argument must be a list") err <- callr_data$err if (quote) if (FALSE) { args <- lapply(args, enquote) base::assign(".Traceback", base::.traceback(4), envir = callr_data) .Internal(do.call(what, args, envir)) utils::dump.frames("__callr_dump__")})(base::quote(function (path, shuffle) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, { envir = callr_data) asNamespace("testthat")$queue_task(path, shuffle) 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/RtmpwcpLwB/callr-rs-result-12a38b22a32d", ".error")) }}, interrupt = function(e) {}), base::quote(list("test_loo_predictive_metric.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE)) {
> test_loo_predictive_metric.R: callr_data <- base::as.environment("tools:callr")$`__callr_data__`42: err <- callr_data$errbase::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE)
> test_loo_predictive_metric.R: if (FALSE) {43: base::assign(".Traceback", base::.traceback(4), envir = callr_data)base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"), utils::dump.frames("__callr_dump__") base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", envir = callr_data) compress = FALSE) base::rm("__callr_dump__", envir = .GlobalEnv)
> test_loo_predictive_metric.R: }44: e <- err$process_call(e)base::withCallingHandlers({ e2 <- err$new_error("error in callr subprocess") { class <- base::class NULL class(e2) <- base::c("callr_remote_error", class(e2)) NULL e2 <- err$add_trace_back(e2) } cut <- base::which(e2$trace$scope == "global")[1] base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", compress = FALSE) if (!base::is.na(cut)) { base::flush(base::stdout()) e2$trace <- e2$trace[-(1:cut), ] base::flush(base::stderr()) } { if (callr_data$has_otel) { NULL callr_data$otel_span$record_exception(e2) NULL } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", ".error")) } } base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__`}, callr_message = function(e) { 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)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") e2 <- err$add_trace_back(e2) } cut <- base::which(e2$trace$scope == "global")[1] else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { if (!base::is.na(cut)) { base::invokeRestart("muffleMessage") 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/RtmpwcpLwB/callr-rs-result-12a38b22a32d", ".error"))}) }
> test_loo_predictive_metric.R: }, interrupt = function(e) {45: doTryCatch(return(expr), name, parentenv, handler)
> test_loo_predictive_metric.R: 46: tryCatchOne(expr, names, parentenv, handlers[[1L]]) { 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: utils::dump.frames("__callr_dump__")47: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) envir = callr_data)
> test_loo_predictive_metric.R: base::rm("__callr_dump__", envir = .GlobalEnv)48: }doTryCatch(return(expr), name, parentenv, handler) e <- err$process_call(e)
> test_loo_predictive_metric.R: e2 <- err$new_error("error in callr subprocess")49: class <- base::classtryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), class(e2) <- base::c("callr_remote_error", class(e2)) names[nh], parentenv, handlers[[nh]]) e2 <- err$add_trace_back(e2)
> 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), ]
> test_loo_predictive_metric.R: }51: if (callr_data$has_otel) {base::tryCatch(base::withCallingHandlers({ callr_data$otel_span$record_exception(e2) { } NULL base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", ".error")) }}, callr_message = function(e) { NULL } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpwcpLwB/callr-fun-12a386a4f86ea"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 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") quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", } compress = FALSE) base::flush(base::stdout())
> test_loo_predictive_metric.R: base::flush(base::stderr()) else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { { NULL base::invokeRestart("muffleMessage") } })})
> test_loo_predictive_metric.R: NULL45: }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) {46: 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__`, 47: envir = callr_data)tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) base::rm("__callr_dump__", envir = .GlobalEnv)
> test_loo_predictive_metric.R: }48: e <- err$process_call(e)doTryCatch(return(expr), name, parentenv, handler) e2 <- err$new_error("error in callr subprocess")
> test_loo_predictive_metric.R: class <- base::class49: class(e2) <- base::c("callr_remote_error", class(e2))tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), e2 <- err$add_trace_back(e2) names[nh], parentenv, handlers[[nh]]) cut <- base::which(e2$trace$scope == "global")[1]
> test_loo_predictive_metric.R: if (!base::is.na(cut)) {50: e2$trace <- e2$trace[-(1:cut), ]tryCatchList(expr, classes, parentenv, handlers) }
> test_loo_predictive_metric.R: if (callr_data$has_otel) {51: callr_data$otel_span$record_exception(e2)base::tryCatch(base::withCallingHandlers({ } { base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", ".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) 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/RtmpwcpLwB/callr-fun-12a386a4f86ea"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class compress = FALSE) class(e2) <- base::c("callr_remote_error", class(e2)) base::flush(base::stdout()) e2 <- err$add_trace_back(e2) base::flush(base::stderr()) cut <- base::which(e2$trace$scope == "global")[1] { if (!base::is.na(cut)) { NULL e2$trace <- e2$trace[-(1:cut), ] NULL } } if (callr_data$has_otel) { base::invisible() callr_data$otel_span$record_exception(e2)}, error = function(e) { } { base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d", callr_data <- base::as.environment("tools:callr")$`__callr_data__` ".error")) err <- callr_data$err } if (FALSE) {}, callr_message = function(e) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::try({ utils::dump.frames("__callr_dump__") callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, pxlib <- callr_data$pxlib envir = callr_data) if (base::is.null(e$code)) { base::rm("__callr_dump__", envir = .GlobalEnv) e$code <- "301" } } e <- err$process_call(e) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, e2 <- err$new_error("error in callr subprocess") NULL))) class <- base::class data <- base::paste0(e$code, " ", base::nchar(msg), "\n", class(e2) <- base::c("callr_remote_error", class(e2)) msg) e2 <- err$add_trace_back(e2) if (callr_data$has_otel) { cut <- base::which(e2$trace$scope == "global")[1] callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) if (!base::is.na(cut)) { } e2$trace <- e2$trace[-(1:cut), ] 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"))) { 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/RtmpwcpLwB/callr-rs-result-12a38b22a32d", ".error")) base::invokeRestart("muffleMessage") } }}, interrupt = function(e) { }) {}), error = function(e) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` { err <- callr_data$err NULL if (FALSE) { NULL base::assign(".Traceback", base::.traceback(4), envir = callr_data) } utils::dump.frames("__callr_dump__") if (FALSE) { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, base::try(base::stop(e)) envir = callr_data) } base::rm("__callr_dump__", envir = .GlobalEnv) if (FALSE) { } base::q(save = "no", status = 1) e <- err$process_call(e) } e2 <- err$new_error("error in callr subprocess") base::invisible() class <- base::class}, interrupt = function(e) { 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), ] if (FALSE) { } base::q(save = "no", status = 1) if (callr_data$has_otel) { } callr_data$otel_span$record_exception(e2) base::invisible() }}) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpwcpLwB/callr-rs-result-12a38b22a32d",
> test_loo_predictive_metric.R: ".error"))An irrecoverable exception occurred. R is aborting now ...
> test_loo_predictive_metric.R: }}, 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