# chk_s3_class_strict
chk_s3_class_strict(factor(1), "factor")
try(chk_s3_class_strict(1, "numeric"))
try(chk_s3_class_strict(getClass("MethodDefinition"), "classRepresentation"))
# vld_s3_class_strict
vld_s3_class_strict(numeric(0), "numeric")
vld_s3_class_strict(getClass("MethodDefinition"), "classRepresentation")
Run the code above in your browser using DataLab