This page contains instructions to download and install the R-INLA package
Before you start, make sure you have installed the package 'sp' as INLA requires it. You may also install the packages: numDeriv, Rgraphviz (from Bioconductor), fields, rgl, mvtnorm, multicore, pixmap, but these are required only for advanced use and are normally not required and are hence only 'suggested'.
You can then install the R-INLA package using one of the following alternatives:
We have created a standard R-repository, so that 'install.packages' and 'update.packages' will work as expected. You need to add the address to the INLA-repository, as
> install.packages("INLA", repos="http://www.math.ntnu.no/inla/R/stable")
for the stable version, OR
> install.packages("INLA", repos="http://www.math.ntnu.no/inla/R/testing")
for the testing version. Do simular using 'update.packages()'.
You can also just append the INLA-repos to the global 'repos' variable, like
> options(respos = c(getOption("repos"), INLA="http://www.math.ntnu.no/inla/R/stable"))
and then you can do
etc, to install and update the package, without specifying the repos. After a testing-period, this will be the only
way to install the package and option #2 and #3 below, will be disabled.
There are two versions of the R-INLA package; one that is updated 'once in a while' and one that is in active development (the testing-version).
To install either one of these, type one of the following command line in R
to install the more stable version or the testing version. You can later upgrade the package, using either