The TMB/INLA implementation depends on R version >=3.1.1 and a variety of other tools.
First, install the "devtools" package from CRAN
# Install and load devtools package
install.packages("devtools")
library("devtools")
Second, please install the following:
- TMB (Template Model Builder): https://github.com/kaskr/adcomp
- INLA (integrated nested Laplace approximations): http://www.r-inla.org/download
Note: at the moment, TMB and INLA can be installed using the commands
# devtools command to get TMB from GitHub
install_github("kaskr/adcomp/TMB")
# source script to get INLA from the web
source("http://www.math.ntnu.no/inla/givemeINLA.R")