This function check whether the object is a bandicoot_oop
object.
Usage
is_bandicoot_oop(obj, why = FALSE)
Arguments
- obj
Any object.
- why
Boolean. Whether or not to print the reason when the check fail.
Examples
e <- new.env()
is_bandicoot_oop(e)
#> [1] FALSE
e <- new_class(class_name = "test")
is_bandicoot_oop(e)
#> [1] TRUE