Skip to content

Allow attributes on a lazyvec #15

@MarcusKlik

Description

@MarcusKlik

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] FALSE

Perhaps a custom lazyvec can store attributes inside the payload object.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions