Re: [Rd] self-referential representations in S4

2011-04-20 Thread John Chambers
The warning is there because all is not just fine, in general and in particular not in your example. If a superclass is not virtual, the prototype object for the new class must have a member of that class in the appropriate slot. How could it do so in this case? As a result, your class will

[Rd] self-referential representations in S4

2011-04-19 Thread James Bullard
I'm trying to do the following: setClass(MyNode, representation(parent = MyNode)) [1] MyNode Warning message: undefined slot classes in definition of MyNode: parent(class MyNode) I scanned the docs, but found nothing. The representation function has no problem, it's the setClass function which