What problem does it solve?
This Skill helps R developers choose and effectively use the appropriate object-oriented programming (OOP) system (S7, S3, S4, vctrs) for their specific project needs, leading to more robust and maintainable code.
Core Features & Use Cases
- OOP System Guidance: Provides a decision tree and comparison matrix to select between S7, S3, S4, and vctrs.
- Code Examples: Demonstrates practical implementation of classes and methods in S7, S3, and vctrs.
- Migration Strategies: Offers advice on migrating from older OOP systems to S7.
- Use Case: You are starting a new R package and need to decide whether to use S7 for its formal classes and validation, or if a simpler S3 approach is sufficient. This Skill will guide your decision.
Quick Start
Use the r-oop skill to understand when to choose S7 over S3 for new R projects.