R/validators.R

Defines functions is.template is.breakpointSystem is.breakpoint

Documented in is.breakpoint is.breakpointSystem is.template

#' Tests whether the object is an instance of a imola breakpoint.
#'
#' @param object Any R object.
#'
#' @return TRUE or FALSE depending if the object is a imola breakpoint.
#' @keywords validators internal
is.breakpoint <- function(object) {
  "imola.breakpoint" %in% class(object)
}

#' Tests whether the object is an instance of a imola breakpoint system.
#'
#' @param object Any R object.
#'
#' @return TRUE or FALSE depending if the object is a imola breakpoint system.
#' @keywords validators internal
is.breakpointSystem <- function(object) {
  "imola.breakpoint.system" %in% class(object)
}

#' Tests whether the object is an instance of a imola template.
#'
#' @param object Any R object.
#'
#' @return TRUE or FALSE depending if the object is a imola template.
#' @keywords validators internal
is.template <- function(object) {
  "imola.template" %in% class(object)
}

Try the imola package in your browser

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

imola documentation built on April 19, 2022, 5:09 p.m.