R/validate.R

Defines functions validate

Documented in validate

#' Generic validation method
#'
#' This function is used to perform assertions that an object
#' conforms to its expected structure and no basic assumptions
#' have been violated. Will throw an error if checks do not pass.
#'
#' @param x object to be validated.
#' @param ... additional arguments to pass to the specific validation method.
#'
#' @export
validate <- function(x, ...) {
    UseMethod("validate")
}

Try the rbmi package in your browser

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

rbmi documentation built on Oct. 16, 2024, 5:09 p.m.