R/check_INLA_install.R

Defines functions .checkINLA

.checkINLA <- function() {
  if (!requireNamespace("INLA", quietly = TRUE) ) {
    r <- getOption("repos")
    r["CRAN"] <- "https://cloud.r-project.org/"
    options(repos = r)
    install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
  }
}
ericdunipace/SLIMpaper documentation built on May 5, 2024, 3:43 p.m.