14.13 Introspection

  • Every R6 object has an S3 class that reflects its hierarchy of R6 classes.
  • Use the class() function to determine class (and all classes it inherits from).
class(collinsavings)
  • You can also list all methods and fields of an R6 object with names().
names(collinsavings)