Error: The inla result collection failed.

43 views
Skip to first unread message

Giulia Caggiu

unread,
Nov 7, 2025, 8:10:19 AMNov 7
to R-inla discussion group
I am currently experiencing an error when trying to specify and run an INLA model in RStudio, and I would like to ask for your help in understanding and resolving the issue.

Here are the details of my setup:
  • Operating System: Windows 11
  • R Versions Tested: 4.5.2 and 4.5.1
  • RStudio Version: 2025.09.2+418
  • Rtools Version: Rtools45
When I attempt to run the INLA model, RStudio displays the following error message:

Screenshot 2025-11-07 093450.png

I have reinstalled R, RStudio, and the INLA package, but the issue persists.
Could you please help me understand what might be causing this error or suggest any troubleshooting steps I could try?

Attached is the script I used

Thank you in advance! 
Best,
Giulia
Script_INLA.R

Helpdesk (Haavard Rue)

unread,
Nov 7, 2025, 9:12:27 AMNov 7
to Giulia Caggiu, R-inla discussion group

can you rerun with options

verbose=TRUE,debug=TRUE

and share the output?

On Fri, 2025-11-07 at 01:37 -0800, Giulia Caggiu wrote:
> I am currently experiencing an error when trying to specify and run an INLA
> model in RStudio, and I would like to ask for your help in understanding and
> resolving the issue.
>
> Here are the details of my setup:
>  * Operating System: Windows 11
>  * R Versions Tested: 4.5.2 and 4.5.1
>  * RStudio Version: 2025.09.2+418
>  * Rtools Version: Rtools45
> When I attempt to run the INLA model, RStudio displays the following error
> message:
>
> Screenshot 2025-11-07 093450.png
>
> I have reinstalled R, RStudio, and the INLA package, but the issue persists.
> Could you please help me understand what might be causing this error or
> suggest any troubleshooting steps I could try?
>
> Attached is the script I used
>
> Thank you in advance! 
> Best,
> Giulia
> --
> You received this message because you are subscribed to the Google Groups "R-
> inla discussion group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to r-inla-discussion...@googlegroups.com.
> To view this discussion, visit
> https://groups.google.com/d/msgid/r-inla-discussion-group/40a792ff-9fb2-495b-ad5e-363682bc6b03n%40googlegroups.com
> .

--
Håvard Rue
he...@r-inla.org

Charles Cunningham

unread,
Nov 10, 2025, 1:11:42 PMNov 10
to R-inla discussion group
I am also getting a similar issue as of the 7th November (when I had to reinstall all packages) using inlabru. 

Here is the error message below and the sessionInfo(). The error occurs after I add in a specific rw1 effect, but I have not had any issues with it prior to last week. I'm a bit stumped and have never had this error before!

Any advice much appreciated.

Warning in bru_log_warn(paste0("iinla: Problem in inla:\n", result)) : iinla: Problem in inla: Error in inla.core.safe(formula = formula, family = family, contrasts = contrasts, : The inla result collection failed. The inla result collection failed. iinla: Problem in inla: 1: bru(components = compsWastewater_SR, family = "poisson", data = invData_SR [...] 2: iinla(model = info[["model"]], lhoods = info[["lhoods"]], inputs = info[[" [...] 3: fm_try_callstack(...) 4: do.call(INLA::inla, inla.options.merged, envir = environment(model$effects)) 5: (function (formula = NULL, family = "gaussian", contrasts = NULL, data = N [...] 6: inla.core.safe(formula = formula, family = family, contrasts = contrasts, [...] 7: stop(paste0(r$message, "\n", "The inla result collection failed.")) iinla: Giving up and returning last successfully obtained result for diagnostic purposes.
> sessionInfo() R version 4.3.2 (2023-10-31) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 22.04.5 LTS Matrix products: default BLAS/LAPACK: /opt/OpenBLAS/lib/libopenblasp-r0.3.20.so; LAPACK version 3.9.0 locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C [8] LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C time zone: Etc/UTC tzcode source: system (glibc) attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] cowplot_1.2.0 GGally_2.4.0 corrplot_0.95 inlabru_2.13.0 fmesher_0.5.0 INLA_25.10.19 Matrix_1.6-5 lubridate_1.9.4 forcats_1.0.0 [10] stringr_1.6.0 dplyr_1.1.4 purrr_1.0.2 readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 ggplot2_4.0.0 tidyverse_2.0.0 loaded via a namespace (and not attached): [1] utf8_1.2.4 generics_0.1.3 class_7.3-22 KernSmooth_2.23-21 stringi_1.8.3 lattice_0.22-7 hms_1.1.3 magrittr_2.0.3 [9] grid_4.3.2 timechange_0.3.0 RColorBrewer_1.1-3 plyr_1.8.9 e1071_1.7-14 DBI_1.2.1 fansi_1.0.6 scales_1.4.0 [17] codetools_0.2-19 cli_3.6.5 rlang_1.1.6 units_1.0-0 splines_4.3.2 remotes_2.5.0 withr_3.0.2 parallel_4.3.2 [25] tools_4.3.2 MatrixModels_0.5-4 tzdb_0.4.0 ggstats_0.11.0 vctrs_0.6.5 R6_2.5.1 proxy_0.4-27 lifecycle_1.0.4 [33] classInt_0.4-11 pkgconfig_2.0.3 terra_1.8-80 pillar_1.9.0 gtable_0.3.6 glue_1.7.0 Rcpp_1.1.0 sf_1.0-22 [41] tidyselect_1.2.0 rstudioapi_0.17.1 farver_2.1.1 compiler_4.3.2 S7_0.2.0 SparkR_3.5.0

Helpdesk (Haavard Rue)

unread,
Nov 10, 2025, 2:47:22 PMNov 10
to Charles Cunningham, R-inla discussion group
Please upgrade from R-4.3 to R-4.5, as we only build for version 4.5 these days

On Mon, 2025-11-10 at 10:11 -0800, 'Charles Cunningham' via R-inla discussion
Reply all
Reply to author
Forward
0 new messages