r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
405 stars 56 forks source link

Helper/Informational functions #112

Closed ecjbosu closed 7 years ago

ecjbosu commented 7 years ago

It would be nice to have helper/inforational functions for R6 classes.

  1. public(private)Fields : would return all public fields/slots
  2. public(private)Methods: would return all public(private) 3 get showMethods or method to work with R6 classes.

These are very helpful for initialization and dynamic programming of objects.

Thank you very much Joe

hadley commented 7 years ago

You can already use names() to return all public fields/methods.

I don't think R6 should expose a list of private fields/methods. They are private!