In order for an object to be considered a proper s3vec object, it has to
is_s3vec(x)
x | An object to test. |
---|
all child elements have to be of the same class
the "s3vec" class attribute has to be in last position
the remaining class attributes have to be the ones of the child elements
#> [1] TRUE#> [1] TRUEis_s3vec(a) # FALSE#> [1] FALSE