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/CoarsePosteriorSummary documentation built on May 6, 2024, 8:04 a.m.