Basically, this:
`[[<-.my_env` = function(env, name, value) {
base::`[[<-`(env, name, value)
}
e = new.env()
class(e) = "my_env"
e[["x"]] = 1
#> Error: C stack usage 7970388 is too close to the limit
I am not sure how to make the overloading work.
EDIT: This question is related but different to this one because I do want to target the environment(s) of the R6 object.