CRAN Package Check Results for Package loo

Last updated on 2026-07-22 13:51:18 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.10.0 5.51 139.84 145.35 OK
r-devel-linux-x86_64-debian-gcc 2.10.0 4.75 96.67 101.42 OK
r-devel-linux-x86_64-fedora-clang 2.10.0 10.00 223.42 233.42 OK
r-devel-linux-x86_64-fedora-gcc 2.10.0 104.38 OK
r-devel-windows-x86_64 2.10.0 10.00 140.00 150.00 OK
r-patched-linux-x86_64 2.10.0 8.11 132.98 141.09 OK
r-release-linux-x86_64 2.10.0 6.54 134.06 140.60 OK
r-release-macos-arm64 2.10.0 2.00 33.00 35.00 OK
r-release-macos-x86_64 2.10.0 5.00 165.00 170.00 OK
r-release-windows-x86_64 2.10.0 12.00 146.00 158.00 OK
r-oldrel-macos-arm64 2.10.0 2.00 37.00 39.00 ERROR
r-oldrel-macos-x86_64 2.10.0 5.00 133.00 138.00 OK
r-oldrel-windows-x86_64 2.10.0 13.00 178.00 191.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: 2: -theta %o% x > test_loo_and_waic.R: 3: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE) > test_loo_and_waic.R: 4: psis_smooth_tail(lw_tail, cutoff) > test_loo_and_waic.R: 5: is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i]) > test_loo_and_waic.R: 6: FUN(X[[i]], ...) > test_loo_and_waic.R: 7: lapply(X = S, FUN = FUN, ...) > test_loo_and_waic.R: 8: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: 10: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 11: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) > test_loo_and_waic.R: 12: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) > test_loo_and_waic.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) > test_loo_and_waic.R: 14: FUN(X[[i]], ...) > test_loo_and_waic.R: 15: lapply(seq_len(cores), inner.do) > test_loo_and_waic.R: 16: parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])) > test_loo_and_waic.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, method = method) > test_loo_and_waic.R: 18: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, 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) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) > test_loo_and_waic.R: 26: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]]) > test_loo_and_waic.R: 28: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 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()) { 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_and_waic.R: 30: doWithOneRestart(return(expr), restart) > test_loo_and_waic.R: 31: withOneRestart(expr, restarts[[1L]]) > test_loo_and_waic.R: 32: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { 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: 33: 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)) expect_equal(loo1$estimates, loo2$estimates) }) > 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: > test_loo_and_waic.R: 35: eval(code, test_env) > test_loo_and_waic.R: 36: eval(code, test_env) > test_loo_and_waic.R: 37: posterior::gpdfit(exp(x) - exp_cutoff, sort_x = FALSE)withCallingHandlers({ > 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, ...) eval(code, test_env) > test_loo_and_waic.R: new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { 8: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip_empty() > test_loo_and_waic.R: }10: }, expectation = handle_expectation, packageNotFoundError = function(e) {tryCatchList(expr, classes, parentenv, handlers) if (on_cran()) { > test_loo_and_waic.R: skip(paste0("{", e$package, "} is not installed."))11: }tryCatch(expr, error = function(e) {}, snapshot_on_cran = function(cnd) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) 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: dcall <- deparse(call, nlines = 1L)tryCatchOne(expr, names, parentenv, handlers[[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) > test_loo_and_waic.R: 40: tryCatchList(expr, classes, parentenv, handlers) > test_loo_and_waic.R: 41: tryCatch(withCallingHandlers({ prefix <- paste0(prefix, "\n ") eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations else prefix <- "Error : " if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() msg <- paste0(prefix, conditionMessage(e), "\n") } .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) > test_loo_and_waic.R: 12: }, expectation = handle_expectation, packageNotFoundError = function(e) {try(lapply(X = S, FUN = FUN, ...), silent = TRUE) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE > test_loo_and_waic.R: 13: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) > test_loo_and_waic.R: 14: invokeRestart("muffle_cran_snapshot")FUN(X[[i]], ...)}, skip = handle_skip, warning = handle_warning, message = handle_message, > test_loo_and_waic.R: error = handle_error, interrupt = handle_interrupt), error = handle_fatal) > test_loo_and_waic.R: 42: doWithOneRestart(return(expr), restart) > test_loo_and_waic.R: 43: withOneRestart(expr, restarts[[1L]]) > test_loo_and_waic.R: 44: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }15: lapply(seq_len(cores), inner.do)}, snapshot_on_cran = function(cnd) { > test_loo_and_waic.R: snapshot_skipped <<- TRUE16: invokeRestart("muffle_cran_snapshot")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: }, skip = handle_skip, warning = handle_warning, message = handle_message, do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), method = method) end_test = function() { > test_loo_and_waic.R: })18: > test_loo_and_waic.R: importance_sampling.array(log_ratios = -x, r_eff = r_eff, cores = cores, 45: method = is_method)test_code(code = exprs, env = env, reporter = get_reporter() %||% > test_loo_and_waic.R: StopReporter$new())19: > test_loo_and_waic.R: loo.array(LLarr, r_eff = r_eff_arr, cores = 2)46: > test_loo_and_waic.R: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 20: error_call = error_call)loo(LLarr, r_eff = r_eff_arr, cores = 2) > test_loo_and_waic.R: > test_loo_and_waic.R: 47: 21: test_one_file(path, env = the$testing_env, shuffle = shuffle)withCallingHandlers(expr, warning = function(w) if (inherits(w, > test_loo_and_waic.R: classes)) tryInvokeRestart("muffleWarning"))48: > test_loo_and_waic.R: doTryCatch(return(expr), name, parentenv, handler)22: > test_loo_and_waic.R: suppressWarnings(loo(LLarr, r_eff = r_eff_arr, cores = 2))49: > test_loo_and_waic.R: tryCatchOne(expr, names, parentenv, handlers[[1L]])23: > test_loo_and_waic.R: eval(code, test_env)50: > test_loo_and_waic.R: tryCatchList(expr, classes, parentenv, handlers)24: > test_loo_and_waic.R: eval(code, test_env)51: > test_loo_and_waic.R: 25: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectationstryCatch(code, testthat_abort_reporter = function(cnd) { if (snapshot_skipped) { cat(conditionMessage(cnd), "\n") skip("On CRAN") NULL }}) else if (!new_expectations && skip_on_empty) { > test_loo_and_waic.R: skip_empty()52: }with_reporter(multi, test_one_file(path, env = the$testing_env, }, expectation = handle_expectation, packageNotFoundError = function(e) { shuffle = shuffle)) if (on_cran()) { > test_loo_and_waic.R: skip(paste0("{", e$package, "} is not installed."))53: }asNamespace("testthat")$queue_task(path, shuffle)}, snapshot_on_cran = function(cnd) { > test_loo_and_waic.R: snapshot_skipped <<- TRUE54: invokeRestart("muffle_cran_snapshot")(function (path, shuffle) }, skip = handle_skip, warning = handle_warning, message = handle_message, { error = handle_error, interrupt = handle_interrupt) asNamespace("testthat")$queue_task(path, shuffle) > test_loo_and_waic.R: })(base::quote("test_loo_and_waic.R"), base::quote(FALSE)) > test_loo_and_waic.R: 55: (function (what, args, quote = FALSE, envir = parent.frame()) {26: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 27: tryCatchOne(expr, names, parentenv, handlers[[1L]]) if (!is.list(args)) > test_loo_and_waic.R: stop("second argument must be a list")28: if (quote) tryCatchList(expr, classes, parentenv, handlers) args <- lapply(args, enquote) > test_loo_and_waic.R: .Internal(do.call(what, args, envir))29: })(base::quote(function (path, shuffle) 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(){ asNamespace("testthat")$queue_task(path, shuffle)}), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), } quote = base::quote(TRUE))}, expectation = handle_expectation, packageNotFoundError = function(e) { > test_loo_and_waic.R: if (on_cran()) {56: skip(paste0("{", e$package, "} is not installed."))base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a53286f03c9"), 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/RtmpKDadTg/callr-fun-14a53286f03c9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", } compress = FALSE)}, snapshot_on_cran = function(cnd) { > test_loo_and_waic.R: snapshot_skipped <<- TRUE58: invokeRestart("muffle_cran_snapshot")base::withCallingHandlers({}, skip = handle_skip, warning = handle_warning, message = handle_message, { error = handle_error, interrupt = handle_interrupt), error = handle_fatal) NULL > test_loo_and_waic.R: NULL30: }doWithOneRestart(return(expr), restart) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a53286f03c9"), > test_loo_and_waic.R: base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, 31: quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", withOneRestart(expr, restarts[[1L]]) compress = FALSE) > test_loo_and_waic.R: base::flush(base::stdout())32: base::flush(base::stderr())withRestarts(tryCatch(withCallingHandlers({ { eval(code, test_env) NULL new_expectations <- the$test_expectations > starting_expectations NULL if (snapshot_skipped) { } skip("On CRAN") base::invisible() }}, error = function(e) { else if (!new_expectations && skip_on_empty) { { skip_empty() callr_data <- base::as.environment("tools:callr")$`__callr_data__` } err <- callr_data$err}, expectation = handle_expectation, packageNotFoundError = function(e) { if (FALSE) { if (on_cran()) { base::assign(".Traceback", base::.traceback(4), envir = callr_data) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) skip(paste0("{", e$package, "} is not installed.")) base::rm("__callr_dump__", envir = .GlobalEnv) } }}, snapshot_on_cran = function(cnd) { e <- err$process_call(e) snapshot_skipped <<- TRUE e2 <- err$new_error("error in callr subprocess") invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) > test_loo_and_waic.R: 33: test_code(code, parent.frame()) > test_loo_and_waic.R: class <- base::class34: class(e2) <- base::c("callr_remote_error", class(e2))test_that("loo with cores=1 and cores=2 gives same results", e2 <- err$add_trace_back(e2) { cut <- base::which(e2$trace$scope == "global")[1] loo2 <- suppressWarnings(loo(LLarr, r_eff = r_eff_arr, if (!base::is.na(cut)) { cores = 2)) e2$trace <- e2$trace[-(1:cut), ] expect_equal(loo1$estimates, loo2$estimates) } }) if (callr_data$has_otel) { > test_loo_and_waic.R: callr_data$otel_span$record_exception(e2)35: }eval(code, test_env) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", > test_loo_and_waic.R: ".error"))36: }eval(code, test_env)}, interrupt = function(e) { > test_loo_and_waic.R: {37: callr_data <- base::as.environment("tools:callr")$`__callr_data__`withCallingHandlers({ err <- callr_data$err eval(code, test_env) if (FALSE) { new_expectations <- the$test_expectations > starting_expectations base::assign(".Traceback", base::.traceback(4), envir = callr_data) if (snapshot_skipped) { utils::dump.frames("__callr_dump__") skip("On CRAN") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) else if (!new_expectations && skip_on_empty) { base::rm("__callr_dump__", envir = .GlobalEnv) } > test_loo_and_waic.R: skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) 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]}, snapshot_on_cran = function(cnd) { if (!base::is.na(cut)) { snapshot_skipped <<- TRUE e2$trace <- e2$trace[-(1:cut), ] 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) if (callr_data$has_otel) { > test_loo_and_waic.R: callr_data$otel_span$record_exception(e2)39: } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", ".error")) }tryCatchOne(expr, names, parentenv, handlers[[1L]])}, callr_message = function(e) { > test_loo_and_waic.R: base::try({40: callr_data <- base::as.environment("tools:callr")$`__callr_data__`tryCatchList(expr, classes, parentenv, handlers) pxlib <- callr_data$pxlib > test_loo_and_waic.R: if (base::is.null(e$code)) {41: e$code <- "301"tryCatch(withCallingHandlers({ } eval(code, test_env) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, new_expectations <- the$test_expectations > starting_expectations NULL))) if (snapshot_skipped) { data <- base::paste0(e$code, " ", base::nchar(msg), "\n", skip("On CRAN") msg) } if (callr_data$has_otel) { else if (!new_expectations && skip_on_empty) { 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"))) { skip_empty() base::invokeRestart("cli_message_handled") } }}, expectation = handle_expectation, packageNotFoundError = function(e) { else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { if (on_cran()) { base::invokeRestart("muffleMessage") skip(paste0("{", e$package, "} is not installed.")) } } })}, snapshot_on_cran = function(cnd) {}) snapshot_skipped <<- TRUE > test_loo_and_waic.R: invokeRestart("muffle_cran_snapshot")59: }, skip = handle_skip, warning = handle_warning, message = handle_message, doTryCatch(return(expr), name, parentenv, handler) error = handle_error, interrupt = handle_interrupt), error = handle_fatal) > test_loo_and_waic.R: > test_loo_and_waic.R: 60: 42: tryCatchOne(expr, names, parentenv, handlers[[1L]])doWithOneRestart(return(expr), restart) > test_loo_and_waic.R: > test_loo_and_waic.R: 61: 43: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])withOneRestart(expr, restarts[[1L]]) > test_loo_and_waic.R: 62: doTryCatch(return(expr), name, parentenv, handler) > test_loo_and_waic.R: 63: > test_loo_and_waic.R: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), 44: names[nh], parentenv, handlers[[nh]])withRestarts(tryCatch(withCallingHandlers({ > test_loo_and_waic.R: eval(code, test_env)64: new_expectations <- the$test_expectations > starting_expectationstryCatchList(expr, classes, parentenv, handlers) if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() > test_loo_and_waic.R: 65: base::tryCatch(base::withCallingHandlers({ { NULL } NULL}, expectation = handle_expectation, packageNotFoundError = function(e) { } if (on_cran()) { base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a53286f03c9"), skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, }, skip = handle_skip, warning = handle_warning, message = handle_message, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { NULL NULL } base::invisible() error = handle_error, interrupt = handle_interrupt), error = handle_fatal), }, error = function(e) { end_test = function() { { }) callr_data <- base::as.environment("tools:callr")$`__callr_data__` > test_loo_and_waic.R: err <- callr_data$err45: if (FALSE) {test_code(code = exprs, env = env, reporter = get_reporter() %||% base::assign(".Traceback", base::.traceback(4), envir = callr_data) StopReporter$new()) utils::dump.frames("__callr_dump__") > test_loo_and_waic.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 46: envir = callr_data)source_file(path, env = env(env), desc = desc, shuffle = shuffle, base::rm("__callr_dump__", envir = .GlobalEnv) error_call = error_call) } > test_loo_and_waic.R: e <- err$process_call(e)47: e2 <- err$new_error("error in callr subprocess")test_one_file(path, env = the$testing_env, shuffle = shuffle) class <- base::class > test_loo_and_waic.R: class(e2) <- base::c("callr_remote_error", class(e2))48: e2 <- err$add_trace_back(e2)doTryCatch(return(expr), name, parentenv, handler) cut <- base::which(e2$trace$scope == "global")[1] > test_loo_and_waic.R: if (!base::is.na(cut)) {49: e2$trace <- e2$trace[-(1:cut), ]tryCatchOne(expr, names, parentenv, handlers[[1L]]) } > test_loo_and_waic.R: if (callr_data$has_otel) {50: callr_data$otel_span$record_exception(e2)tryCatchList(expr, classes, parentenv, handlers) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", ".error")) }}, interrupt = function(e) { > test_loo_and_waic.R: {51: callr_data <- base::as.environment("tools:callr")$`__callr_data__`tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) > test_loo_and_waic.R: err <- callr_data$err52: if (FALSE) {with_reporter(multi, test_one_file(path, env = the$testing_env, base::assign(".Traceback", base::.traceback(4), envir = callr_data) shuffle = shuffle)) utils::dump.frames("__callr_dump__") > test_loo_and_waic.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 53: envir = callr_data)asNamespace("testthat")$queue_task(path, shuffle) base::rm("__callr_dump__", envir = .GlobalEnv) > test_loo_and_waic.R: }54: e <- err$process_call(e)(function (path, shuffle) e2 <- err$new_error("error in callr subprocess"){ class <- base::class asNamespace("testthat")$queue_task(path, shuffle) class(e2) <- base::c("callr_remote_error", class(e2))})(base::quote("test_loo_and_waic.R"), base::quote(FALSE)) e2 <- err$add_trace_back(e2) > test_loo_and_waic.R: cut <- base::which(e2$trace$scope == "global")[1]55: if (!base::is.na(cut)) {(function (what, args, quote = FALSE, envir = parent.frame()) e2$trace <- e2$trace[-(1:cut), ]{ } if (!is.list(args)) if (callr_data$has_otel) { stop("second argument must be a list") callr_data$otel_span$record_exception(e2) if (quote) } args <- lapply(args, enquote) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", ".error")) }}, callr_message = function(e) { base::try({ .Internal(do.call(what, args, envir)) callr_data <- base::as.environment("tools:callr")$`__callr_data__`})(base::quote(function (path, shuffle) { asNamespace("testthat")$queue_task(path, shuffle)}), base::quote(list("test_loo_and_waic.R", FALSE)), envir = base::quote(<environment>), pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) > test_loo_and_waic.R: quote = base::quote(TRUE)) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) > test_loo_and_waic.R: 56: base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a53286f03c9"), if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { quote = TRUE) base::invokeRestart("cli_message_handled") > test_loo_and_waic.R: }57: else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) {base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a53286f03c9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", compress = FALSE) > test_loo_and_waic.R: 58: base::withCallingHandlers({ { base::invokeRestart("muffleMessage") } })}), error = function(e) { { NULL NULL NULL NULL } } base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a53286f03c9"), if (FALSE) { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, base::try(base::stop(e)) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", } compress = FALSE) if (FALSE) { base::flush(base::stdout()) base::q(save = "no", status = 1) base::flush(base::stderr()) } { base::invisible() NULL}, interrupt = function(e) { NULL { } NULL base::invisible() NULL}, error = function(e) { } { if (FALSE) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::q(save = "no", status = 1) err <- callr_data$err } if (FALSE) { base::invisible() base::assign(".Traceback", base::.traceback(4), envir = callr_data)}) utils::dump.frames("__callr_dump__") base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) } > 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)) e2 <- err$add_trace_back(e2)An irrecoverable exception occurred. R is aborting now ... > test_loo_and_waic.R: 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/RtmpKDadTg/callr-rs-result-14a53106195dc", ".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/RtmpKDadTg/callr-rs-result-14a53106195dc", ".error")) }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}) > 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/RtmpKDadTg/callr-fun-14a53286f03c9"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a53106195dc", 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/RtmpKDadTg/callr-rs-result-14a53106195dc", ".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/RtmpKDadTg/callr-rs-result-14a53106195dc", ".error")) }}, callr_message = function(e) { base::try({ > test_loo_and_waic.R: callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" } msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, NULL))) data <- base::paste0(e$code, " ", base::nchar(msg), "\n", msg) if (callr_data$has_otel) { callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code)) } pxlib$write_fd(3L, data) if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { base::invokeRestart("cli_message_handled") } else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { base::invokeRestart("muffleMessage") } })}), error = function(e) { { NULL NULL } if (FALSE) { base::try(base::stop(e)) } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}, interrupt = function(e) { { NULL NULL } if (FALSE) { base::q(save = "no", status = 1) } base::invisible()}) > test_loo_and_waic.R: An irrecoverable exception occurred. R is aborting now ... Saving _problems/test_loo_and_waic-30.R > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: *** caught segfault *** > test_loo_predictive_metric.R: address 0x110, cause 'invalid permissions' > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: *** caught segfault *** > test_loo_predictive_metric.R: address 0x110, cause 'invalid permissions' > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: Traceback: > test_loo_predictive_metric.R: > 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: 6: FUN(X[[i]], ...) > test_loo_predictive_metric.R: 7: lapply(X = S, FUN = FUN, ...) > test_loo_predictive_metric.R: > 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: 8: tryCatchOne(expr, names, parentenv, handlers[[1L]])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: > test_loo_predictive_metric.R: tryCatch(expr, error = function(e) {10: call <- conditionCall(e)tryCatchList(expr, classes, parentenv, handlers) if (!is.null(call)) { > test_loo_predictive_metric.R: if (identical(call[[1L]], quote(doTryCatch))) 11: call <- sys.call(-4L)tryCatch(expr, error = function(e) { dcall <- deparse(call, nlines = 1L) call <- conditionCall(e) prefix <- paste("Error in", dcall, ": ") if (!is.null(call)) { LONG <- 75L if (identical(call[[1L]], quote(doTryCatch))) 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], call <- sys.call(-4L) type = "b") dcall <- deparse(call, nlines = 1L) if (w > LONG) prefix <- paste("Error in", dcall, ": ") prefix <- paste0(prefix, "\n ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) > test_loo_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[, i], tail_len_i = tail_len[i])) > test_loo_predictive_metric.R: 17: do_importance_sampling(log_ratios, r_eff = r_eff, cores = cores, method = method) > test_loo_predictive_metric.R: 18: importance_sampling.matrix(log_ratios, ..., r_eff = r_eff, cores = cores, method = "psis") > test_loo_predictive_metric.R: 19: psis.matrix(-LL, r_eff = r_eff, cores = 2) > test_loo_predictive_metric.R: 20: psis(-LL, r_eff = r_eff, cores = 2) > test_loo_predictive_metric.R: 21: eval(code, test_env) > test_loo_predictive_metric.R: 22: eval(code, test_env) > test_loo_predictive_metric.R: 23: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { 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") w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], }, skip = handle_skip, warning = handle_warning, message = handle_message, type = "b") error = handle_error, interrupt = handle_interrupt) if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") > test_loo_predictive_metric.R: .Internal(seterrmessage(msg[1L]))24: if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))doTryCatch(return(expr), name, parentenv, handler)}) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 25: 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: tryCatchOne(expr, names, parentenv, handlers[[1L]])14: > test_loo_predictive_metric.R: 26: tryCatchList(expr, classes, parentenv, handlers) > test_loo_predictive_metric.R: 27: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {FUN(X[[i]], ...) skip("On CRAN") > test_loo_predictive_metric.R: }15: else if (!new_expectations && skip_on_empty) {lapply(seq_len(cores), inner.do) skip_empty() > test_loo_predictive_metric.R: }16: }, expectation = handle_expectation, packageNotFoundError = function(e) {parallel::mclapply(X = seq_len(N), mc.cores = cores, FUN = function(i) is_fun(log_ratios_i = log_ratios[, i], tail_len_i = tail_len[i])) > test_loo_predictive_metric.R: 17: 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") if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE > test_loo_predictive_metric.R: invokeRestart("muffle_cran_snapshot")19: psis.matrix(-LL, r_eff = r_eff, cores = 2) > test_loo_predictive_metric.R: 20: psis(-LL, r_eff = r_eff, cores = 2)}, 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: > test_loo_predictive_metric.R: 21: eval(code, test_env) > test_loo_predictive_metric.R: 22: eval(code, test_env) > test_loo_predictive_metric.R: 23: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { > test_loo_predictive_metric.R: 29: withOneRestart(expr, restarts[[1L]]) > test_loo_predictive_metric.R: skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) > test_loo_predictive_metric.R: 24: 30: doTryCatch(return(expr), name, parentenv, handler)withRestarts(tryCatch(withCallingHandlers({ > test_loo_predictive_metric.R: eval(code, test_env)25: new_expectations <- the$test_expectations > starting_expectationstryCatchOne(expr, names, parentenv, handlers[[1L]]) if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() > test_loo_predictive_metric.R: 26: tryCatchList(expr, classes, parentenv, handlers) > test_loo_predictive_metric.R: 27: }tryCatch(withCallingHandlers({}, 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) snapshot_skipped <<- TRUE new_expectations <- the$test_expectations > starting_expectations invokeRestart("muffle_cran_snapshot") if (snapshot_skipped) {}, skip = handle_skip, warning = handle_warning, message = handle_message, skip("On CRAN") error = handle_error, interrupt = handle_interrupt), error = handle_fatal), } end_test = function() { else if (!new_expectations && skip_on_empty) { }) skip_empty() > test_loo_predictive_metric.R: }31: }, expectation = handle_expectation, packageNotFoundError = function(e) {test_code(code = exprs, env = env, reporter = get_reporter() %||% if (on_cran()) { StopReporter$new()) 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, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) > test_loo_predictive_metric.R: 28: doWithOneRestart(return(expr), restart)32: > test_loo_predictive_metric.R: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 29: error_call = error_call) > test_loo_predictive_metric.R: 33: test_one_file(path, env = the$testing_env, shuffle = shuffle) > test_loo_predictive_metric.R: withOneRestart(expr, restarts[[1L]])34: > test_loo_predictive_metric.R: doTryCatch(return(expr), name, parentenv, handler)30: > test_loo_predictive_metric.R: withRestarts(tryCatch(withCallingHandlers({35: eval(code, test_env)tryCatchOne(expr, names, parentenv, handlers[[1L]]) new_expectations <- the$test_expectations > starting_expectations > test_loo_predictive_metric.R: if (snapshot_skipped) {36: skip("On CRAN")tryCatchList(expr, classes, parentenv, handlers) } > test_loo_predictive_metric.R: else if (!new_expectations && skip_on_empty) {37: skip_empty()tryCatch(code, testthat_abort_reporter = function(cnd) { } cat(conditionMessage(cnd), "\n")}, expectation = handle_expectation, packageNotFoundError = function(e) { NULL}) > test_loo_predictive_metric.R: 38: with_reporter(multi, test_one_file(path, env = the$testing_env, if (on_cran()) { shuffle = shuffle)) skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") > test_loo_predictive_metric.R: 39: asNamespace("testthat")$queue_task(path, shuffle) > test_loo_predictive_metric.R: 40: }, skip = handle_skip, warning = handle_warning, message = handle_message, (function (path, shuffle) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), { end_test = function() { asNamespace("testthat")$queue_task(path, shuffle) })})(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE)) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 31: 41: test_code(code = exprs, env = env, reporter = get_reporter() %||% (function (what, args, quote = FALSE, envir = parent.frame()) StopReporter$new()){ > test_loo_predictive_metric.R: if (!is.list(args)) 32: stop("second argument must be a list")source_file(path, env = env(env), desc = desc, shuffle = shuffle, if (quote) error_call = error_call) args <- lapply(args, enquote) > test_loo_predictive_metric.R: .Internal(do.call(what, args, envir))33: })(base::quote(function (path, shuffle) test_one_file(path, env = the$testing_env, shuffle = shuffle){ > test_loo_predictive_metric.R: asNamespace("testthat")$queue_task(path, shuffle)34: }), base::quote(list("test_loo_predictive_metric.R", FALSE)), doTryCatch(return(expr), name, parentenv, handler) envir = base::quote(<environment>), quote = base::quote(TRUE)) > test_loo_predictive_metric.R: > test_loo_predictive_metric.R: 35: 42: tryCatchOne(expr, names, parentenv, handlers[[1L]])base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE) > test_loo_predictive_metric.R: 36: tryCatchList(expr, classes, parentenv, handlers) > test_loo_predictive_metric.R: 37: > test_loo_predictive_metric.R: tryCatch(code, testthat_abort_reporter = function(cnd) {43: cat(conditionMessage(cnd), "\n")base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", compress = FALSE) NULL}) > test_loo_predictive_metric.R: 38: with_reporter(multi, test_one_file(path, env = the$testing_env, > test_loo_predictive_metric.R: shuffle = shuffle))44: > test_loo_predictive_metric.R: base::withCallingHandlers({39: {asNamespace("testthat")$queue_task(path, shuffle) NULL > test_loo_predictive_metric.R: NULL40: }(function (path, shuffle) base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, asNamespace("testthat")$queue_task(path, shuffle) quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", })(base::quote("test_loo_predictive_metric.R"), base::quote(FALSE)) compress = FALSE) > test_loo_predictive_metric.R: base::flush(base::stdout())41: base::flush(base::stderr())(function (what, args, quote = FALSE, envir = parent.frame()) {{ NULL if (!is.list(args)) NULL stop("second argument must be a list") } if (quote) base::invisible() args <- lapply(args, enquote)}, error = function(e) { .Internal(do.call(what, args, envir)) {})(base::quote(function (path, shuffle) callr_data <- base::as.environment("tools:callr")$`__callr_data__`{ err <- callr_data$err asNamespace("testthat")$queue_task(path, shuffle) if (FALSE) {}), base::quote(list("test_loo_predictive_metric.R", FALSE)), base::assign(".Traceback", base::.traceback(4), envir = callr_data) envir = base::quote(<environment>), quote = base::quote(TRUE)) utils::dump.frames("__callr_dump__") > test_loo_predictive_metric.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 42: envir = callr_data)base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE) > test_loo_predictive_metric.R: 43: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, base::rm("__callr_dump__", envir = .GlobalEnv) } e <- err$process_call(e) e2 <- err$new_error("error in callr subprocess") class <- base::class quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", class(e2) <- base::c("callr_remote_error", class(e2)) compress = FALSE) e2 <- err$add_trace_back(e2) > test_loo_predictive_metric.R: cut <- base::which(e2$trace$scope == "global")[1]44: if (!base::is.na(cut)) {base::withCallingHandlers({ e2$trace <- e2$trace[-(1:cut), ] { } NULL if (callr_data$has_otel) { NULL callr_data$otel_span$record_exception(e2) } } > test_loo_predictive_metric.R: base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", ".error")) base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", 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__`}, interrupt = function(e) { err <- callr_data$err { if (FALSE) { callr_data <- base::as.environment("tools:callr")$`__callr_data__` base::assign(".Traceback", base::.traceback(4), envir = callr_data) err <- callr_data$err utils::dump.frames("__callr_dump__") if (FALSE) { base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, base::assign(".Traceback", base::.traceback(4), envir = callr_data) envir = callr_data) utils::dump.frames("__callr_dump__") base::rm("__callr_dump__", envir = .GlobalEnv) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, } envir = callr_data) e <- err$process_call(e) base::rm("__callr_dump__", envir = .GlobalEnv) e2 <- err$new_error("error in callr subprocess") } class <- base::class e <- err$process_call(e) class(e2) <- base::c("callr_remote_error", class(e2)) e2 <- err$new_error("error in callr subprocess") e2 <- err$add_trace_back(e2) class <- base::class cut <- base::which(e2$trace$scope == "global")[1] class(e2) <- base::c("callr_remote_error", class(e2)) if (!base::is.na(cut)) { e2 <- err$add_trace_back(e2) e2$trace <- e2$trace[-(1:cut), ] cut <- base::which(e2$trace$scope == "global")[1] } if (!base::is.na(cut)) { if (callr_data$has_otel) { e2$trace <- e2$trace[-(1:cut), ] } if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } callr_data$otel_span$record_exception(e2) base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", ".error")) }}, interrupt = function(e) { ".error")) { }}, callr_message = function(e) { base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib callr_data <- base::as.environment("tools:callr")$`__callr_data__` if (base::is.null(e$code)) { err <- callr_data$err e$code <- "301" if (FALSE) { } base::assign(".Traceback", base::.traceback(4), envir = callr_data) msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, utils::dump.frames("__callr_dump__") NULL))) base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, data <- base::paste0(e$code, " ", base::nchar(msg), "\n", envir = callr_data) msg) base::rm("__callr_dump__", envir = .GlobalEnv) 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"))) { e <- err$process_call(e) base::invokeRestart("cli_message_handled") e2 <- err$new_error("error in callr subprocess") } class <- base::class else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { class(e2) <- base::c("callr_remote_error", class(e2)) base::invokeRestart("muffleMessage") e2 <- err$add_trace_back(e2) } cut <- base::which(e2$trace$scope == "global")[1] }) if (!base::is.na(cut)) {}) e2$trace <- e2$trace[-(1:cut), ] > test_loo_predictive_metric.R: }45: if (callr_data$has_otel) {doTryCatch(return(expr), name, parentenv, handler) callr_data$otel_span$record_exception(e2) > test_loo_predictive_metric.R: }46: base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", tryCatchOne(expr, names, parentenv, handlers[[1L]]) ".error")) > test_loo_predictive_metric.R: }47: }, callr_message = function(e) {tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) base::try({ callr_data <- base::as.environment("tools:callr")$`__callr_data__` pxlib <- callr_data$pxlib if (base::is.null(e$code)) { e$code <- "301" > test_loo_predictive_metric.R: }48: msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, doTryCatch(return(expr), name, parentenv, handler) NULL))) > test_loo_predictive_metric.R: data <- base::paste0(e$code, " ", base::nchar(msg), "\n", 49: msg)tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), if (callr_data$has_otel) { names[nh], parentenv, handlers[[nh]]) 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"))) { > test_loo_predictive_metric.R: base::invokeRestart("cli_message_handled")50: }tryCatchList(expr, classes, parentenv, handlers) > test_loo_predictive_metric.R: 51: base::tryCatch(base::withCallingHandlers({ { 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::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/Volumes/Temp/tmp/RtmpKDadTg/callr-fun-14a533b84922c"), base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", compress = FALSE) base::flush(base::stdout()) > test_loo_predictive_metric.R: base::flush(base::stderr())46: {tryCatchOne(expr, names, parentenv, handlers[[1L]]) NULL > test_loo_predictive_metric.R: NULL47: }tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) base::invisible() > test_loo_predictive_metric.R: }, error = function(e) {48: {doTryCatch(return(expr), name, parentenv, handler) callr_data <- base::as.environment("tools:callr")$`__callr_data__` > test_loo_predictive_metric.R: err <- callr_data$err49: if (FALSE) {tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), base::assign(".Traceback", base::.traceback(4), envir = callr_data) names[nh], parentenv, handlers[[nh]]) utils::dump.frames("__callr_dump__") > test_loo_predictive_metric.R: base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, 50: envir = callr_data)tryCatchList(expr, classes, parentenv, handlers) base::rm("__callr_dump__", envir = .GlobalEnv) > test_loo_predictive_metric.R: }51: e <- err$process_call(e)base::tryCatch(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/RtmpKDadTg/callr-fun-14a533b84922c"), if (!base::is.na(cut)) { base::list(envir = .GlobalEnv, quote = TRUE)), envir = .GlobalEnv, e2$trace <- e2$trace[-(1:cut), ] quote = TRUE), file = "/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", compress = FALSE) base::flush(base::stdout()) base::flush(base::stderr()) { > test_loo_predictive_metric.R: } NULL NULL if (callr_data$has_otel) { callr_data$otel_span$record_exception(e2) } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", } base::invisible()}, error = function(e) { { ".error")) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } err <- callr_data$err}, interrupt = function(e) { if (FALSE) { { base::assign(".Traceback", base::.traceback(4), envir = callr_data) callr_data <- base::as.environment("tools:callr")$`__callr_data__` utils::dump.frames("__callr_dump__") err <- callr_data$err base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, if (FALSE) { envir = callr_data) base::assign(".Traceback", base::.traceback(4), envir = callr_data) base::rm("__callr_dump__", envir = .GlobalEnv) utils::dump.frames("__callr_dump__") } base::assign(".Last.dump", .GlobalEnv$`__callr_dump__`, e <- err$process_call(e) envir = callr_data) e2 <- err$new_error("error in callr subprocess") base::rm("__callr_dump__", envir = .GlobalEnv) class <- base::class } class(e2) <- base::c("callr_remote_error", class(e2)) e <- err$process_call(e) e2 <- err$add_trace_back(e2) e2 <- err$new_error("error in callr subprocess") cut <- base::which(e2$trace$scope == "global")[1] class <- base::class if (!base::is.na(cut)) { class(e2) <- base::c("callr_remote_error", class(e2)) e2$trace <- e2$trace[-(1:cut), ] e2 <- err$add_trace_back(e2) } cut <- base::which(e2$trace$scope == "global")[1] if (callr_data$has_otel) { if (!base::is.na(cut)) { callr_data$otel_span$record_exception(e2) e2$trace <- e2$trace[-(1:cut), ] } } base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", ".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)) { if (callr_data$has_otel) { e2$trace <- e2$trace[-(1:cut), ] callr_data$otel_span$record_exception(e2) } } if (callr_data$has_otel) { base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", ".error")) }}, callr_message = function(e) { base::try({ callr_data$otel_span$record_exception(e2) callr_data <- base::as.environment("tools:callr")$`__callr_data__` } pxlib <- callr_data$pxlib base::saveRDS(base::list("error", e2, e), file = base::paste0("/Volumes/Temp/tmp/RtmpKDadTg/callr-rs-result-14a537c98a53a", if (base::is.null(e$code)) { ".error")) e$code <- "301" } }}, callr_message = function(e) { msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, base::try({ NULL))) callr_data <- base::as.environment("tools:callr")$`__callr_data__` data <- base::paste0(e$code, " ", base::nchar(msg), "\n", pxlib <- callr_data$pxlib msg) if (base::is.null(e$code)) { if (callr_data$has_otel) { e$code <- "301" 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") msg <- base::paste0("base64::", pxlib$base64_encode(base::serialize(e, } NULL))) else if (base::inherits(e, "message") && !base::is.null(base::findRestart("muffleMessage"))) { data <- base::paste0(e$code, " ", base::nchar(msg), "\n", base::invokeRestart("muffleMessage") msg) } if (callr_data$has_otel) { }) callr_data$otel_span$add_event("callr message", attributes = list(status_code = e$code))}), error = function(e) { } { pxlib$write_fd(3L, data) NULL if (base::inherits(e, "cli_message") && !base::is.null(base::findRestart("cli_message_handled"))) { 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