Skip to content

CONCERN: Is it safe to have attributes on environments? #32

@HenrikBengtsson

Description

@HenrikBengtsson

Note to self: Is it safe to have attributes on environments? It might not be, cf. r-lib/R6#64 and https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16441.

UPDATE: I'm pretty sure I went through this discussion back in ~2001/2 for the R.oo package. The Object:s in R.oo basically uses:

x <- NA
attr(x, "envir") <- new.env()
class(x) <- c("Object")

such that attributes are not attached to the environment. However, I'm not sure if this is related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions