Introduction
R6 classes help you organize your code by grouping data and actions together. They make your programs easier to understand and reuse.
When you want to create objects that keep their own data and behavior.
When you need to model real-world things like cars, people, or bank accounts in your code.
When you want to write code that is easier to maintain and extend later.
When you want to avoid repeating the same code in many places.
When you want to keep track of changing information inside an object.