CRAN Package Check Results for Package loo

Last updated on 2026-07-13 03:50:40 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.10.0 7.14 139.44 146.58 OK
r-devel-linux-x86_64-debian-gcc 2.10.0 4.35 98.70 103.05 OK
r-devel-linux-x86_64-fedora-clang 2.10.0 11.00 391.49 402.49 OK
r-devel-linux-x86_64-fedora-gcc 2.10.0 10.00 401.80 411.80 OK
r-devel-windows-x86_64 2.10.0 11.00 152.00 163.00 OK
r-patched-linux-x86_64 2.10.0 7.72 134.77 142.49 OK
r-release-linux-x86_64 2.10.0 4.96 133.24 138.20 OK
r-release-macos-arm64 2.10.0 2.00 33.00 35.00 OK
r-release-macos-x86_64 2.10.0 5.00 165.00 170.00 OK
r-release-windows-x86_64 2.10.0 10.00 167.00 177.00 OK
r-oldrel-macos-arm64 2.10.0 2.00 35.00 37.00 ERROR
r-oldrel-macos-x86_64 2.10.0 5.00 133.00 138.00 OK
r-oldrel-windows-x86_64 2.10.0 13.00 183.00 196.00 OK

Check Details

Version: 2.10.0
Check: tests
Result: ERROR Running ‘testthat.R’ [13s/7s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(loo) This is loo version 2.10.0 - Online documentation and vignettes at mc-stan.org/loo - As of v2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) for an entire session. > library(testthat) Attaching package: 'testthat' The following object is masked from 'package:loo': compare > Sys.setenv("R_TESTS" = "") > test_check("loo") Starting 2 test processes. > test_loo_and_waic.R: > test_loo_and_waic.R: *** caught segfault *** > test_loo_and_waic.R: address 0x110, cause 'invalid permissions' > test_loo_and_waic.R: > test_loo_and_waic.R: *** caught segfault *** > test_loo_and_waic.R: address 0x110, cause 'invalid permissions' > test_loo_and_waic.R: > test_loo_and_waic.R: Traceback: > test_loo_and_waic.R: 1: outer(X, Y) > test_loo_and_waic.R: > test_loo_and_waic.R: Traceback: > test_loo_and_waic.R: 1: outer(X, Y) > test_loo_and_waic.R: 2: -theta %o% x > test_loo_and_waic.R: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE) > test_loo_and_waic.R: 4: psis_smooth_tail(lw_tail, cutoff) > test_loo_and_waic.R: 5: is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]) > test_loo_and_waic.R: 6: FUN(X[[i]], ...) > test_loo_and_waic.R: 7: lapply(X = S, FUN = FUN, ...) > test_loo_and_waic.R: 8: 2: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: -theta %o% x 9: > test_loo_and_waic.R: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 3: > test_loo_and_waic.R: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)10: > test_loo_and_waic.R: tryCatchList(expr, classes, parentenv, handlers) 4: > test_loo_and_waic.R: psis_smooth_tail(lw_tail, cutoff) > 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: 11: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { 7: lapply(X = S, FUN = FUN, ...) > test_loo_and_waic.R: 8: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: if (identical(call[[1L]], quote(doTryCatch))) 9: call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: 10: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 11: 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) 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 <- paste0(prefix, "\n ") prefix <- paste("Error in", dcall, ": ") } LONG <- 75L else prefix <- "Error : " sm <- strsplit(conditionMessage(e), "\n")[[1L]] msg <- paste0(prefix, conditionMessage(e), "\n") w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) > test_loo_and_waic.R: 12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) > test_loo_and_waic.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) > test_loo_and_waic.R: 14: FUN(X[[i]], ...) } 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: 15: lapply(seq_len(cores), inner.do) > test_loo_and_waic.R: 16: > test_loo_and_waic.R: parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])) > test_loo_and_waic.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, method = method) > test_loo_and_waic.R: 18: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, method = is_method) > test_loo_and_waic.R: 19: loo.array(LLarr, r_eff = r_eff_arr, cores = 2) > test_loo_and_waic.R: 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")) > test_loo_and_waic.R: 22: 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: 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) { > test_loo_and_waic.R: 13: skip_empty()sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) } > test_loo_and_waic.R: }, expectation = handle_expectation, packageNotFoundError = function(e) {14: FUN(X[[i]], ...) > test_loo_and_waic.R: 15: if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")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, }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) > test_loo_and_waic.R: 26: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 27: method = method)tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: > test_loo_and_waic.R: 28: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 18: 29: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { method = is_method) skip("On CRAN") > test_loo_and_waic.R: }19: else if (!new_expectations && skip_on_empty) {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: skip_empty()withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning")) > test_loo_and_waic.R: }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 22: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2)) > test_loo_and_waic.R: 30: doWithOneRestart(return(expr), restart) > test_loo_and_waic.R: 31: withOneRestart(expr, restarts[[1L]]) > test_loo_and_waic.R: > test_loo_and_waic.R: 23: eval(code, test_env) > test_loo_and_waic.R: 24: eval(code, test_env) > test_loo_and_waic.R: 25: withCallingHandlers({ eval(code, test_env)32: new_expectations <- the$test_expectations > starting_expectationswithRestarts(tryCatch(withCallingHandlers({ if (snapshot_skipped) { eval(code, test_env) skip("On CRAN") 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) { skip("On CRAN") 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) { invokeRestart("muffle_cran_snapshot") skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {}, skip = handle_skip, warning = handle_warning, message = handle_message, snapshot_skipped <<- TRUE error = handle_error, interrupt = handle_interrupt) invokeRestart("muffle_cran_snapshot") > test_loo_and_waic.R: }, skip = handle_skip, warning = handle_warning, message = handle_message, 26: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) > 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", {28: loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, tryCatchList(expr, classes, parentenv, handlers) cores = 2)) > test_loo_and_waic.R: expect_equal(loo1$estimates, loo2$estimates) }) > test_loo_and_waic.R: 35: 29: eval(code, test_env)tryCatch(withCallingHandlers({ > test_loo_and_waic.R: eval(code, test_env)36: new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty()eval(code, test_env) > test_loo_and_waic.R: 37: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { else if (!new_expectations && skip_on_empty) { snapshot_skipped <<- TRUE skip_empty() invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, }, expectation = handle_expectation, packageNotFoundError = function(e) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal) if (on_cran()) { > test_loo_and_waic.R: skip(paste0("{", e$package, "} is not installed."))30: }doWithOneRestart(return(expr), restart)}, snapshot_on_cran = function(cnd) { > test_loo_and_waic.R: snapshot_skipped <<- TRUE31: invokeRestart("muffle_cran_snapshot")withOneRestart(expr, restarts[[1L]]) > test_loo_and_waic.R: 32: withRestarts(tryCatch(withCallingHandlers({}, skip = handle_skip, warning = handle_warning, message = handle_message, eval(code, test_env) error = handle_error, interrupt = handle_interrupt) 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) {38: if (on_cran()) {doTryCatch(return(expr), name, parentenv, handler) skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE > test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")39: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatchOne(expr, names, parentenv, handlers[[1L]]) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), > test_loo_and_waic.R: end_test = function() {40: })tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: > test_loo_and_waic.R: 33: 41: test_code(code, parent.frame()) > 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))tryCatch(withCallingHandlers({ expect_equal(loo1$estimates, loo2$estimates) eval(code, test_env) }) new_expectations <- the$test_expectations > starting_expectations > test_loo_and_waic.R: if (snapshot_skipped) {35: eval(code, test_env) > test_loo_and_waic.R: 36: 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) {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) { snapshot_skipped <<- TRUE skip("On CRAN") invokeRestart("muffle_cran_snapshot") } else if (!new_expectations && skip_on_empty) { > test_loo_and_waic.R: }, skip = handle_skip, warning = handle_warning, message = handle_message, 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) error = handle_error, interrupt = handle_interrupt) > test_loo_and_waic.R: > test_loo_and_waic.R: 42: 38: doWithOneRestart(return(expr), restart)doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: > test_loo_and_waic.R: 43: 39: withOneRestart(expr, restarts[[1L]])tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: > test_loo_and_waic.R: 40: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 41: tryCatch(withCallingHandlers({ eval(code, test_env)44: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") 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()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") 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: doWithOneRestart(return(expr), restart) > test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]])}, 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: > test_loo_and_waic.R: 44: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {45: skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty()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) }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } > test_loo_and_waic.R: 48: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 49: tryCatchOne(expr, names, parentenv, handlers[[1L]])}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) > test_loo_and_waic.R: 45: > test_loo_and_waic.R: 50: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 51: tryCatch(code, testthat_abort_reporter = function(cnd) {test_code(code = exprs, env = env, reporter = get_reporter() %||% cat(conditionMessage(cnd), "\n") StopReporter$new()) NULL > test_loo_and_waic.R: }) > test_loo_and_waic.R: 52: with_reporter(multi, test_one_file(path, env = the$testing_env, 46: shuffle = shuffle))source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) > test_loo_and_waic.R: 47: test_one_file(path, env = the$testing_env, shuffle = shuffle) > test_loo_and_waic.R: 48: > test_loo_and_waic.R: doTryCatch(return(expr), name, parentenv, handler)53: asNamespace("testthat")$queue_task(path, shuffle) > test_loo_and_waic.R: 54: (function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle) > test_loo_and_waic.R: 49: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: 50: tryCatchList(expr, classes, parentenv, handlers)})(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") > test_loo_and_waic.R: if (quote) 51: args <- lapply(args, enquote)tryCatch(code, testthat_abort_reporter = function(cnd) { .Internal(do.call(what, args, envir)) cat(conditionMessage(cnd), "\n")})(base::quote(function (path, shuffle) NULL{}) asNamespace("testthat")$queue_task(path, shuffle) > test_loo_and_waic.R: }), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE)) > test_loo_and_waic.R: 56: 52: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), with_reporter(multi, test_one_file(path, env = the$testing_env, base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, shuffle = shuffle)) quote = TRUE) > test_loo_and_waic.R: > test_loo_and_waic.R: 53: 57: asNamespace("testthat")$queue_task(path, shuffle)base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), > test_loo_and_waic.R: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 54: quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", (function (path, shuffle) compress = FALSE){ > test_loo_and_waic.R: asNamespace("testthat")$queue_task(path, shuffle)58: base::withCallingHandlers({ { NULL})(base::quote("test_loo_and_waic.R"), base::quote(FALSE)) NULL > 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) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), .Internal(do.call(what, args, envir)) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, })(base::quote(function (path, shuffle) quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", { compress = FALSE) asNamespace("testthat")$queue_task(path, shuffle) base::flush(base::stdout())}), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE)) > test_loo_and_waic.R: 56: base::flush(base::stderr())base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), 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/Rtmpc7Bpco/callr-fun-16124377631bd"), { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, NULL quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", compress = FALSE) > test_loo_and_waic.R: 58: NULLbase::withCallingHandlers({ } { base::invisible() NULL}, error = function(e) { NULL { } callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", compress = FALSE) err <- callr_data$err base::flush(base::stdout()) if (FALSE) { base::flush(base::stderr()) base::assign(".Traceback", base::.traceback(4), envir = callr_data) { utils::dump.frames("__callr_dump__") NULL NULL } base::invisible() base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, }, error = function(e) { envir = callr_data) { base::rm("__callr_dump__", envir = .GlobalEnv) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } > test_loo_and_waic.R: 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) 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::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".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) 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/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".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/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".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", 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/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib msg) if (base::is.null(e$code)) { e$code <- "301" } if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}) > test_loo_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: 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 } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL } pxlib$write_fd(3L, data) base::invisible()}, error = function(e) { { callr_data <- base::as.environment("tools:callr")$`__callr_data__` err <- callr_data$err 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 (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::invokeRestart("muffleMessage") } })}) > test_loo_and_waic.R: base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$add_trace_back(e2)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: 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: cut <- base::which(e2$trace$scope == "global")[1]tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), if (!base::is.na(cut)) { names[nh], parentenv, handlers[[nh]]) e2$trace <- e2$trace[-(1:cut), ] > test_loo_and_waic.R: }64: if (callr_data$has_otel) {tryCatchList(expr, classes, parentenv, handlers) callr_data$otel_span$record_exception(e2) > test_loo_and_waic.R: }65: base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".error")) }}, interrupt = function(e) { {base::tryCatch(base::withCallingHandlers({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` { NULL NULL } err <- callr_data$err if (FALSE) { > test_loo_and_waic.R: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-16124377631bd"), 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/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL } base::invisible()}, error = function(e) { { } 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)) 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__`, e2 <- err$add_trace_back(e2) envir = callr_data) cut <- base::which(e2$trace$scope == "global")[1] base::rm("__callr_dump__", envir = .GlobalEnv) if (!base::is.na(cut)) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } } 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::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".error")) }}, callr_message = function(e) { base::try({ 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__` base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", pxlib <- callr_data$pxlib ".error")) if (base::is.null(e$code)) { } e$code <- "301"}, interrupt = function(e) { } { 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)) } 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) pxlib$write_fd(3L, data) e2 <- err$new_error("error in callr subprocess") if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { 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("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}), error = function(e) { if (!base::is.na(cut)) { { e2$trace <- e2$trace[-(1:cut), ] NULL NULL } if (FALSE) { } base::try(base::stop(e)) if (callr_data$has_otel) { } callr_data$otel_span$record_exception(e2) if (FALSE) { base::q(save = "no", status = 1) } base::invisible() } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-1612430bb8bbd", ".error")) }}, callr_message = function(e) { base::try({}, interrupt = function(e) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` { NULL NULL } if (FALSE) { base::q(save = "no", status = 1) pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) } base::invisible()}) > test_loo_and_waic.R: An irrecoverable exception occurred. R is aborting now ... > test_loo_and_waic.R: 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: > test_loo_predictive_metric.R: Traceback: > test_loo_predictive_metric.R: 1: 1: outer(X, Y)outer(X, Y) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 2: 2: -theta %o% x-theta %o% x > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 3: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 4: 4: psis_smooth_tail(lw_tail, cutoff)psis_smooth_tail(lw_tail, cutoff) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 5: 5: is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 6: 6: FUN(X[[i]], ...)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: > test_loo_predictive_metric.R: 7: lapply(X = S, FUN = FUN, ...) > test_loo_predictive_metric.R: 8: doTryCatch(return(expr), name, parentenv, handler)tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_predictive_metric.R: 10: tryCatchList(expr, classes, parentenv, handlers) > test_loo_predictive_metric.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 11: tryCatch(expr, error = function(e) { call <- conditionCall(e)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))) if (!is.null(call)) { call <- sys.call(-4L) 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)) dcall <- deparse(call, nlines = 1L) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], prefix <- paste("Error in", dcall, ": ") type = "b") LONG <- 75L if (w > LONG) 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], prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) else prefix <- "Error : " } msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 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: > test_loo_predictive_metric.R: 12: 13: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 13: 14: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))FUN(X[[i]], ...) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 14: 15: FUN(X[[i]], ...)lapply(seq_len(cores), inner.do) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 15: 16: lapply(seq_len(cores), inner.do)parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])) > test_loo_predictive_metric.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, method = method) > test_loo_predictive_metric.R: 18: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, method = "psis") > test_loo_predictive_metric.R: 19: > test_loo_predictive_metric.R: 16: parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])) > test_loo_predictive_metric.R: 17: psis.matrix(-LL, r_eff = r_eff, cores = 2)do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, > test_loo_predictive_metric.R: method = method)20: > test_loo_predictive_metric.R: psis(-LL, r_eff = r_eff, cores = 2) > test_loo_predictive_metric.R: 21: eval(code, test_env)18: > test_loo_predictive_metric.R: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, method = "psis") > test_loo_predictive_metric.R: 19: psis.matrix(-LL, r_eff = r_eff, cores = 2)22: eval(code, test_env) > test_loo_predictive_metric.R: 23: withCallingHandlers({ > test_loo_predictive_metric.R: eval(code, test_env)20: new_expectations <- the$test_expectations > starting_expectationspsis(-LL, r_eff = r_eff, cores = 2) if (snapshot_skipped) { > test_loo_predictive_metric.R: skip("On CRAN")21: }eval(code, test_env) else if (!new_expectations && skip_on_empty) { > test_loo_predictive_metric.R: skip_empty()22: }eval(code, test_env)}, expectation = handle_expectation, packageNotFoundError = function(e) { > test_loo_predictive_metric.R: if (on_cran()) {23: skip(paste0("{", e$package, "} is not installed."))withCallingHandlers({ } eval(code, test_env)}, snapshot_on_cran = function(cnd) { new_expectations <- the$test_expectations > starting_expectations snapshot_skipped <<- TRUE if (snapshot_skipped) { invokeRestart("muffle_cran_snapshot") skip("On CRAN")}, skip = handle_skip, warning = handle_warning, message = handle_message, } error = handle_error, interrupt = handle_interrupt) else if (!new_expectations && skip_on_empty) { > test_loo_predictive_metric.R: skip_empty()24: }doTryCatch(return(expr), name, parentenv, handler)}, expectation = handle_expectation, packageNotFoundError = function(e) { > test_loo_predictive_metric.R: if (on_cran()) {25: skip(paste0("{", e$package, "} is not installed."))tryCatchOne(expr, names, parentenv, handlers[[1L]]) } > test_loo_predictive_metric.R: }, snapshot_on_cran = function(cnd) {26: snapshot_skipped <<- TRUEtryCatchList(expr, classes, parentenv, handlers) invokeRestart("muffle_cran_snapshot") > test_loo_predictive_metric.R: }, skip = handle_skip, warning = handle_warning, message = handle_message, 27: error = handle_error, interrupt = handle_interrupt)tryCatch(withCallingHandlers({ > test_loo_predictive_metric.R: eval(code, test_env)24: new_expectations <- the$test_expectations > starting_expectationsdoTryCatch(return(expr), name, parentenv, handler) if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { > test_loo_predictive_metric.R: 25: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_predictive_metric.R: skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))26: }tryCatchList(expr, classes, parentenv, handlers)}, snapshot_on_cran = function(cnd) { > test_loo_predictive_metric.R: snapshot_skipped <<- TRUE27: invokeRestart("muffle_cran_snapshot")tryCatch(withCallingHandlers({}, skip = handle_skip, warning = handle_warning, message = handle_message, eval(code, test_env) error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 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: skip_empty()28: }doWithOneRestart(return(expr), restart)}, expectation = handle_expectation, packageNotFoundError = function(e) { > test_loo_predictive_metric.R: if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) > test_loo_predictive_metric.R: 28: doWithOneRestart(return(expr), restart) > test_loo_predictive_metric.R: 29: 29: withOneRestart(expr, restarts[[1L]])withOneRestart(expr, restarts[[1L]]) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 30: 30: withRestarts(tryCatch(withCallingHandlers({withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { if (snapshot_skipped) { skip("On CRAN") skip("On CRAN") } } else if (!new_expectations && skip_on_empty) { else if (!new_expectations && skip_on_empty) { skip_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_on_cran = function(cnd) { snapshot_skipped <<- TRUE snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) > test_loo_predictive_metric.R: 31: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), test_code(code = exprs, env = env, reporter = get_reporter() %||% end_test = function() { }) > test_loo_predictive_metric.R: 31: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) StopReporter$new()) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 32: 32: source_file(path, env = env(env), desc = desc, shuffle = shuffle, source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) error_call = error_call) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 33: 33: test_one_file(path, env = the$testing_env, shuffle = shuffle)test_one_file(path, env = the$testing_env, shuffle = shuffle) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 34: 34: doTryCatch(return(expr), name, parentenv, handler)doTryCatch(return(expr), name, parentenv, handler) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 35: 35: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 36: 36: tryCatchList(expr, classes, parentenv, handlers)tryCatchList(expr, classes, parentenv, handlers) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 37: 37: 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_predictive_metric.R: > test_loo_predictive_metric.R: 38: 38: with_reporter(multi, test_one_file(path, env = the$testing_env, 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: shuffle = shuffle))40: > test_loo_predictive_metric.R: (function (path, shuffle) 39: {asNamespace("testthat")$queue_task(path, shuffle) asNamespace("testthat")$queue_task(path, shuffle) > test_loo_predictive_metric.R: })(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE))40: > test_loo_predictive_metric.R: (function (path, shuffle) 41: {(function (what, args, quote = FALSE, envir = parent.frame()) asNamespace("testthat")$queue_task(path, shuffle){})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE)) if (!is.list(args)) > test_loo_predictive_metric.R: stop("second argument must be a list")41: if (quote) (function (what, args, quote = FALSE, envir = parent.frame()) args <- lapply(args, enquote){ .Internal(do.call(what, args, envir)) if (!is.list(args)) })(base::quote(function (path, shuffle) 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) asNamespace("testthat")$queue_task(path, shuffle)}), base::quote(list("test_loo_predictive_metric.R", FALSE)), envir = base::quote(<environment>), quote = base::quote(TRUE)) > test_loo_predictive_metric.R: 42: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE) > test_loo_predictive_metric.R: }), base::quote(list("test_loo_predictive_metric.R", FALSE)), 43: envir = base::quote(<environment>), quote = base::quote(TRUE))base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", compress = FALSE) > test_loo_predictive_metric.R: 42: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, > test_loo_predictive_metric.R: quote = TRUE)44: > test_loo_predictive_metric.R: base::withCallingHandlers({43: {base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), NULL base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, NULL quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", } compress = FALSE) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), > test_loo_predictive_metric.R: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 44: quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", base::withCallingHandlers({ compress = FALSE) { base::flush(base::stdout()) NULL base::flush(base::stderr()) NULL { } NULL base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), NULL base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, } quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", base::invisible() compress = FALSE)}, error = function(e) { base::flush(base::stdout()) { base::flush(base::stderr()) 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__") base::invisible() base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, }, error = function(e) { envir = callr_data) { base::rm("__callr_dump__", envir = .GlobalEnv) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } err <- callr_data$err e <- err$process_call(e) 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__") class(e2) <- base::c("callr_remote_error", class(e2)) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, e2 <- err$add_trace_back(e2) envir = callr_data) cut <- base::which(e2$trace$scope == "global")[1] base::rm("__callr_dump__", envir = .GlobalEnv) if (!base::is.na(cut)) { } e2$trace <- e2$trace[-(1:cut), ] e <- err$process_call(e) } e2 <- err$new_error("error in callr subprocess") if (callr_data$has_otel) { class <- base::class callr_data$otel_span$record_exception(e2) class(e2) <- base::c("callr_remote_error", class(e2)) } e2 <- err$add_trace_back(e2) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", > test_loo_predictive_metric.R: cut <- base::which(e2$trace$scope == "global")[1] ".error")) } if (!base::is.na(cut)) {}, interrupt = function(e) { 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/Rtmpc7Bpco/callr-rs-result-16124449dc04f", callr_data <- base::as.environment("tools:callr")$`__callr_data__` ".error")) err <- callr_data$err } if (FALSE) {}, interrupt = function(e) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) { utils::dump.frames("__callr_dump__") callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, err <- callr_data$err envir = callr_data) if (FALSE) { base::rm("__callr_dump__", envir = .GlobalEnv) base::assign(".Traceback", base::.traceback(4), envir = callr_data) } utils::dump.frames("__callr_dump__") e <- err$process_call(e) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, e2 <- err$new_error("error in callr subprocess") envir = callr_data) class <- base::class base::rm("__callr_dump__", envir = .GlobalEnv) class(e2) <- base::c("callr_remote_error", class(e2)) } e2 <- err$add_trace_back(e2) e <- err$process_call(e) cut <- base::which(e2$trace$scope == "global")[1] e2 <- err$new_error("error in callr subprocess") if (!base::is.na(cut)) { class <- base::class e2$trace <- e2$trace[-(1:cut), ] class(e2) <- base::c("callr_remote_error", class(e2)) } e2 <- err$add_trace_back(e2) if (callr_data$has_otel) { cut <- base::which(e2$trace$scope == "global")[1] callr_data$otel_span$record_exception(e2) if (!base::is.na(cut)) { } e2$trace <- e2$trace[-(1:cut), ] base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", ".error")) }}, callr_message = function(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/Rtmpc7Bpco/callr-rs-result-16124449dc04f", ".error")) }}, callr_message = function(e) { base::try({ base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } callr_data <- base::as.environment("tools:callr")$`__callr_data__` msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, pxlib <- callr_data$pxlib NULL))) if (base::is.null(e$code)) { data <- base::paste0(e$code, " ", base::nchar(msg), "\n", e$code <- "301" msg) } if (callr_data$has_otel) { msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) NULL))) } data <- base::paste0(e$code, " ", base::nchar(msg), "\n", pxlib$write_fd(3L, data) msg) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { if (callr_data$has_otel) { base::invokeRestart("cli_message_handled") 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"))) { else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") base::invokeRestart("muffleMessage") } } }) })})}) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 45: 45: doTryCatch(return(expr), name, parentenv, handler)doTryCatch(return(expr), name, parentenv, handler) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 46: 46: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_predictive_metric.R: 47: tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) > test_loo_predictive_metric.R: 48: doTryCatch(return(expr), name, parentenv, handler) > test_loo_predictive_metric.R: 49: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]]) > test_loo_predictive_metric.R: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_predictive_metric.R: 47: tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) > test_loo_predictive_metric.R: 50: 48: tryCatchList(expr, classes, parentenv, handlers)doTryCatch(return(expr), name, parentenv, handler) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 51: 49: base::tryCatch(base::withCallingHandlers({tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), { names[nh], parentenv, handlers[[nh]]) NULL > test_loo_predictive_metric.R: NULL50: }tryCatchList(expr, classes, parentenv, handlers) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), > test_loo_predictive_metric.R: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 51: quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) {base::tryCatch(base::withCallingHandlers({ NULL { NULL NULL } NULL base::invisible() }}, error = function(e) { base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-fun-161245d44a0df"), { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, callr_data <- base::as.environment("tools:callr")$`__callr_data__` quote = TRUE), file = "/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", err <- callr_data$err compress = FALSE) if (FALSE) { base::flush(base::stdout()) base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::flush(base::stderr()) utils::dump.frames("__callr_dump__") { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, NULL envir = callr_data) NULL base::rm("__callr_dump__", envir = .GlobalEnv) } } base::invisible() e <- err$process_call(e)}, error = function(e) { e2 <- err$new_error("error in callr subprocess") { class <- base::class callr_data <- base::as.environment("tools:callr")$`__callr_data__` class(e2) <- base::c("callr_remote_error", class(e2)) err <- callr_data$err e2 <- err$add_trace_back(e2) if (FALSE) { cut <- base::which(e2$trace$scope == "global")[1] base::assign(".Traceback", base::.traceback(4), envir = callr_data) if (!base::is.na(cut)) { utils::dump.frames("__callr_dump__") e2$trace <- e2$trace[-(1:cut), ] base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) if (callr_data$has_otel) { base::rm("__callr_dump__", envir = .GlobalEnv) callr_data$otel_span$record_exception(e2) } } e <- err$process_call(e) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", e2 <- err$new_error("error in callr subprocess") ".error")) class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2))}, interrupt = function(e) { e2 <- err$add_trace_back(e2) { cut <- base::which(e2$trace$scope == "global")[1] callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (!base::is.na(cut)) { err <- callr_data$err if (FALSE) { > test_loo_predictive_metric.R: e2$trace <- e2$trace[-(1:cut), ] base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") } base::assign(".Last.dump", .GlobalEnv$`__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/Rtmpc7Bpco/callr-rs-result-16124449dc04f", ".error")) envir = callr_data) } base::rm("__callr_dump__", envir = .GlobalEnv)}, interrupt = function(e) { } { e <- err$process_call(e) callr_data <- base::as.environment("tools:callr")$`__callr_data__` e2 <- err$new_error("error in callr subprocess") err <- callr_data$err class <- base::class if (FALSE) { class(e2) <- base::c("callr_remote_error", class(e2)) base::assign(".Traceback", base::.traceback(4), envir = callr_data) e2 <- err$add_trace_back(e2) utils::dump.frames("__callr_dump__") cut <- base::which(e2$trace$scope == "global")[1] base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, if (!base::is.na(cut)) { envir = callr_data) e2$trace <- e2$trace[-(1:cut), ] base::rm("__callr_dump__", envir = .GlobalEnv) } } if (callr_data$has_otel) { e <- err$process_call(e) callr_data$otel_span$record_exception(e2) e2 <- err$new_error("error in callr subprocess") } class <- base::class base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", ".error")) }}, callr_message = function(e) { class(e2) <- base::c("callr_remote_error", class(e2)) base::try({ 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), ] } callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (callr_data$has_otel) { pxlib <- callr_data$pxlib callr_data$otel_span$record_exception(e2) if (base::is.null(e$code)) { } e$code <- "301" base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/Rtmpc7Bpco/callr-rs-result-16124449dc04f", } ".error")) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, } NULL)))}, callr_message = function(e) { data <- base::paste0(e$code, " ", base::nchar(msg), "\n", base::try({ msg) callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (callr_data$has_otel) { pxlib <- callr_data$pxlib callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) 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"))) { msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, base::invokeRestart("cli_message_handled") NULL))) } data <- base::paste0(e$code, " ", base::nchar(msg), "\n", else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { msg) base::invokeRestart("muffleMessage") if (callr_data$has_otel) { } callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { })}), error = function(e) { { NULL NULL base::invokeRestart("cli_message_handled") } } if (FALSE) { else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::try(base::stop(e)) base::invokeRestart("muffleMessage") } } if (FALSE) { }) base::q(save = "no", status = 1)}), error = function(e) { } { base::invisible() NULL}, interrupt = function(e) { NULL { } NULL if (FALSE) { NULL base::try(base::stop(e)) } } if (FALSE) { if (FALSE) { base::q(save = "no", status = 1) base::q(save = "no", status = 1) } } base::invisible() base::invisible()})}, interrupt = function(e) { > test_loo_predictive_metric.R: {An irrecoverable exception occurred. R is aborting now ... > test_loo_predictive_metric.R: 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