R/errors-common.R

Defines functions stop_bad_class

## Internal errors ----

stop_bad_class = function(x, obj_name) {
    stop("`x` must be an `", obj_name,"` object. Class ", class(x)[1], " is not supported.")
}

Try the edina package in your browser

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

edina documentation built on March 26, 2020, 9:30 p.m.