R/is_inference_model.R

Defines functions is_inference_model

Documented in is_inference_model

#' Determine if the input is an inference model
#' @param x object to be determined of if it is an inference model
#' @return TRUE if the object is an inference model
#' @export
is_inference_model <- function(x) {
  result <- FALSE
  tryCatch({
    check_inference_model(x)
    result <- TRUE
  },
    error = function(e) {} # nolint do not care about e
  )
  result
}

Try the beautier package in your browser

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

beautier documentation built on Nov. 2, 2023, 5:08 p.m.