Download & Install

Instructions to get started with R-INLA

Installation Guide

To install the stable or testing version of R-INLA, use one of the following commands in R:

install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE) install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/testing"), dep=TRUE)

To update INLA:

inla.upgrade() inla.upgrade(testing=TRUE)

Windows users may need to uninstall INLA before reinstalling. For required Bioconductor packages:

if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install(c("graph", "Rgraphviz"), dep=TRUE)

To install alternative Linux builds:

inla.binary.install()

Version Compatibility

Use the remotes package to install a specific version of INLA that matches your R version:

R VersionINLA VersionCommand
R 4.525.04.29remotes::install_version("INLA", version = "25.04.29", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/testing"), dep = TRUE)
R 4.424.05.10remotes::install_version("INLA", version = "24.05.10", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/testing"), dep = TRUE)
R 4.323.05.30remotes::install_version("INLA", version = "23.05.30", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/testing"), dep = TRUE)
R 4.222.05.07remotes::install_version("INLA", version = "22.05.07", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/testing"), dep = TRUE)
R 4.122.05.03remotes::install_version("INLA", version = "22.05.03", repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/testing"), dep = TRUE)

fmesher Dependency

From version 23.08.18, INLA depends on the fmesher package instead of a standalone binary. For more information, see fmesher on CRAN or the conversion guide.

options(repos=c( inlabruorg = "https://inlabru-org.r-universe.dev", INLA = "https://inla.r-inla-download.org/R/testing", CRAN = "https://cran.rstudio.com" )) install.packages("fmesher")

Troubleshooting

Most installation issues arise from using outdated versions of R or INLA. Please ensure you are using:

If issues persist, restart your R session and reinstall using the commands above.

← Back to Home