Search code examples
roopreference-class

How to get the name of a reference class?


For instance, is there some function getName that allows me to do:

> TestA <- setRefClass("TestA")
> getName(TestA())
[1] "TestA"

Solution

  • Maybe simply check its class:

    class(TestA())