r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
410 stars 56 forks source link

Is 2.4.1 required for R 4.0? #196

Closed hongooi73 closed 4 years ago

hongooi73 commented 4 years ago

From the NEWS file:

Cloning active bindings previously relied on buggy behavior in as.list.environment(), which would return the active binding's function definition rather than the value from invoking the function. In R 4.0, the behavior will chang so that it returns the value. R6 now no longer relies on this buggy behavior. (#192)

It sounds like cloning active bindings will very probably break with R 4.0 unless we upgrade to R6 2.4.1. Is this a fair assessment?

wch commented 4 years ago

That's right. The new behavior for R is not currently enabled by default in R-devel, but if you'd like to test it you can turn it on by setting the environment variable _R_ENV2LIST_BUGFIX_=true (you'll need to use R-devel for this).