Gets the formal name of the class and package of an ALTREP object

get_altrep_class_info(obj)

Arguments

obj

The ALTREP class name

Value

The class information (class name and package name) of an ALTREP object, a character vector of length two. If the object is not an ALTREP object, returns NULL.

Examples

get_altrep_class_info(1:5)
#> [1] "compact_intseq" "base"