R/check_supported.R

Defines functions check_supported

check_supported <- function(obj){

  if(!is_class(obj,"supported") &&
     !is_ctd(obj)){
    stopper("Unsupported class detected: ",
            paste(methods::is(obj),collapse = " / "),
            "\n"," obj must be at least one of the following classes:",
            paste(" \n -",dict_class(group = "supported_print"),
                  collapse = ""))
  }
}
bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.