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)
  }
}
eifer4/CoarsePosteriorSummary documentation built on April 10, 2021, 12:40 p.m.