.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)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.