R/chk.hy.R

##' Check whether an object is a hyperSpec object and validate the object
##'
##' @title Validation of hyperSpec objects
##' @aliases validObject validObject,hyperSpec-method chk.hy
##' @author C. Beleites
##' @seealso \code{\link[methods]{validObject}}
##' @param object the object to check
##' @return \code{TRUE} if the check passes, otherwise stop with an
##' error.
##' @keywords methods
##' @export
##' @examples 
##' chk.hy (chondro)
##' validObject (chondro)
chk.hy <- function (object){
  if (! is (object, "hyperSpec"))
    stop ("no hyperSpec object")

  TRUE
}

Try the hyperSpec package in your browser

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

hyperSpec documentation built on May 2, 2019, 5:45 p.m.