check all classes are as expected

check_classes(data, ok_classes, stop_message, stop = TRUE)

Arguments

data

the data object

ok_classes

a vector of allowed classes

stop_message

a character string provided to users if error triggers.

stop

should the variable stop, or create a warning?