R/INLA_check.R

Defines functions INLA_check

Documented in INLA_check

#' Check for INLA
#' 
#' @return \code{NULL}, invisibly
#' 
#' @keywords internal
INLA_check <- function(){
  if (!requireNamespace("INLA", quietly = TRUE)) { 
    stop(
      "Package \"INLA\" needed to for spatial modeling. ",
      "Please install it at https://www.r-inla.org/download-install.", 
      call. = FALSE
    )
  }
}

Try the templateICAr package in your browser

Any scripts or data that you put into this service are public.

templateICAr documentation built on Feb. 16, 2023, 8:14 p.m.