What problem does it solve?
It helps you pick and implement the most appropriate object-oriented programming approach in R, reducing design mistakes when working with classes, methods, and type systems.
Core Features & Use Cases
- Decision guidance for R OOP choices: Compare S7, S4, S3, and vctrs using a practical decision matrix to match your data shape and ecosystem needs.
- S7-focused class design patterns: Use
new_class(), validators, safe property access with @, generics, and multiple dispatch for structured, validated object models.
- vctrs-focused vector-like modeling: Model vector-like types that integrate cleanly with data frames and predictable casting/coercion behavior.
- S3 and S4 context and migration: Use S3 for lightweight compatibility, S4 for Bioconductor ecosystems and complex inheritance, and apply migration strategies (notably S3→S7) when upgrading designs.
Quick Start
Ask for an S7 vs vctrs vs S3 recommendation for a new R design where you need validated properties and clear method dispatch, and include the object’s fields and intended operations.