I am using RStudio version 4.5.0 and I am trying to install INLA package and I keep on getting an error.
I used this R-studio:
install.packages("INLA",repos=c(getOption("repos"),INLA="Index of /R/stable"), dep=TRUE)
install.packages("INLA",repos=c(getOption("repos"),INLA="Index of /R/testing"), dep=TRUE)
inla.upgrade() # for the stable version
inla.upgrade(testing=TRUE) # for the testing version
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(c("graph", "Rgraphviz"), dep=TRUE)
This is what I get:
install.packages("INLA",repos=c(getOption("repos"),INLA="Index of /R/stable"), dep=TRUE)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Installing package into ‘C:/Users/daniel/AppData/Local/R/win-library/4.5’
(as ‘lib’ is unspecified)
I have updated my RStudio more that ones, but still have issues
As the error says, you need to install Rtools - this is different to Rstudio and is not an R package (i.e. you can't install from R). Once you've installed Rtools, it should work.