Hadley Wickham | An introduction to R7 | RStudio (2022)
HTML-код
- Опубликовано: 21 авг 2024
- The R7 package is a new OOP system designed to be a successor to S3 and S4. It has been designed and implemented collaboratively by the RConsortium Object- Oriented Programming Working Group, which includes representatives from R-Core, BioConductor, RStudio/tidyverse, and the wider R community.
In this talk, I'll introduce R7 to the wider world. Attendees will learn why we created R7 and how they can use it to create new classes and packages. I hope to inspire folks to download, try it out, and give us the feedback we need to make it better.
Session: Just typing R code: advanced R programming
Great addition to R system, congratulations for the effort
str_reverse doesn't exist in stringr, but we have strings::stri_reverse, for those wondering :)
I smell a syntactic sugar pre-compiler brewing, ala typescript and babel. As its input, a classical OO class definition; as output, a package of new_generic(), method(), and new_class() statements.
Now it is called S7.
came here to say this.
correct S3+S4 = S7 .... reminds me of my chemistry classes back in high school years ago! great addition to R
When are we seeing it in base R? I think it is better than both S3 and S4.
good
Couldn't a method check if thr generic is not available then create one... Rather then defining an empty line for generic which doesn't make much sense...❤
Could I use R7 for package development? tried ,failed;