Re: [Rd] reference classes: question on inheritance

2010-11-21 Thread Janko Thyson
Hmm, interesting: it's the virtual class that causes the trouble. If a virtual class is a ref class, everything works fine. If it's a standard S4 class, it results in the error below. Regards, Janko > -Ursprüngliche Nachricht- > Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de] > G

[Rd] reference classes: question on inheritance

2010-11-21 Thread Janko Thyson
Dear list, I have a reference class which should act as a "generic" superclass for other classes. I've read the respective section at ?setRefClass and put the name of the superclass to the 'contains' argument of an example subclass (see class defs below). Classnames are set in a way that shouldn't

[Rd] Ref classes: can I register fields as I register methods?

2010-11-21 Thread Janko Thyson
Hi there, is it possible to register fields as you can register methods with getRefClass("Classname")$methods(.)? I know that you should usually give some thought on which fields you need and hardcode them in the class def. But I'm playing around with dynamically creating/extending sort of