3 ms·
https://adv-r.hadley.nz/oo.html https://adv-r.hadley.nz/oo.html "There are multiple OOP systems to choose from. In this book, I’ll focus on the three that I be
by kgwgk 4y ago
https://adv-r.hadley.nz/oo.html https://adv-r.hadley.nz/oo.html
"There are multiple OOP systems to choose from. In this book, I’ll focus on the three that I believe are most important: S3, R6, and S4. S3 and S4 are provided by base R. R6 is provided by the R6 package, and is similar to the Reference Classes, or RC for short, from base R.
"There is disagreement about the relative importance of the OOP systems. I think S3 is most important, followed by R6, then S4. Others believe that S4 is most important, followed by RC, and that S3 should be avoided. This means that different R communities use different systems."
https://rconsortium.github.io/OOP-WG/ https://rconsortium.github.io/OOP-WG/
"The S7 package is a new OOP system designed to be a successor to S3 and S4."
(https://xkcd.com/927/ https://xkcd.com/927/)