Are there good tutorials on object-oriented programming in R?
It would be great if it included the following:
- how to define a class;
- differences between S3 and S4 classes;
- operator overloading (I’d like to be able to write
bare instances of the class I have in mind).
Hadley Wickham’s wiki on devtools is a great resource for the necessary information in a concise form. However, if you want an exhaustive resource, the R language manual’s OOP section may be helpful. I am sure more experienced members will have better suggestions.