Error handling for incorrect object inputs to api.R calls
check_class(object, type)
object
An R object
type
Expected class of object
class