R/is.R

Defines functions is.smb_analysis is.smb_model is.smb_code

Documented in is.smb_analysis is.smb_code is.smb_model

#' Is STAN Code
#'
#' Tests whether x is an object of class 'smb_code'
#'
#' @param x The object to test.
#' @return A flag indicating whether the test was positive.
#' @export
is.smb_code <- function(x) {
  inherits(x, "smb_code")
}

#' Is a STAN Model
#'
#' Tests whether x is an object of class 'smb_model'
#'
#' @param x The object to test.
#'
#' @return A flag indicating whether the test was positive.
#' @export
is.smb_model <- function(x) {
  inherits(x, "smb_model")
}

#' Is a STAN Analysis
#'
#' Tests whether x is an object of class 'smb_analysis'
#'
#' @param x The object to test.
#'
#' @return A flag indicating whether the test was positive.
#' @export
is.smb_analysis <- function(x) {
  inherits(x, "smb_analysis")
}
poissonconsulting/smbr documentation built on Jan. 14, 2024, 5:59 a.m.