-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently, setting an attribute to an ALTREP vector, triggers a copy and after that the vector is no longer an ALTREP:
x <- 1:10
lazyvec::is_altrep(x)
#> [1] TRUE
class(x) <- "my_class"
lazyvec::is_altrep(x)
#> [1] FALSEPerhaps a custom lazyvec can store attributes inside the payload object.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request