your example runs without any issues with me.
you can use
inla.as.sparse(A)
to convert a sparse matrix into the format used by R-INLA.
my packages are as follows.
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: x86_64-redhat-linux-gnu
Running under: Fedora Linux 41 (Workstation Edition)
Matrix products: default
BLAS/LAPACK: FlexiBLAS MKL; LAPACK version 3.12.0
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
time zone: Asia/Riyadh
tzcode source: system (glibc)
attached base packages:
[1] datasets compiler grDevices graphics utils stats methods
[8] base
other attached packages:
[1] INLA_24.10.29 sp_2.1-4 Matrix_1.7-1 flexiblas_3.4.0
[5] dplyr_1.1.4
loaded via a namespace (and not attached):
[1] vctrs_0.6.5 cli_3.6.3 rlang_1.1.4 KernSmooth_2.23-24
[5] DBI_1.2.3 generics_0.1.3 sf_1.0-18 glue_1.8.0
[9] e1071_1.7-16 fansi_1.0.6 grid_4.4.1 classInt_0.4-10
[13] tibble_3.2.1 lifecycle_1.0.4 fmesher_0.1.7.9010 Rcpp_1.0.13
[17] pkgconfig_2.0.3 lattice_0.22-6 R6_2.5.1 class_7.3-22
[21] tidyselect_1.2.1 utf8_1.2.4 parallel_4.4.1 pillar_1.9.0
[25] splines_4.4.1 magrittr_2.0.3 withr_3.0.2 tools_4.4.1
[29] proxy_0.4-27 units_0.8-5
> To view this discussion, visit
>
https://groups.google.com/d/msgid/r-inla-discussion-group/3e5f3bac-7d8b-4513-8de4-d5d9d75df27en%40googlegroups.com
> .
--
Håvard Rue
he...@r-inla.org