Re: [Rd] How to add a slot to S4 class of an existing package?

2010-09-08 Thread Seb
On Tue, 7 Sep 2010 20:41:14 -0400, Kasper Daniel Hansen kasperdanielhan...@gmail.com wrote: Seb That thread and the resources in Biobase assumes that you have a class that extends Versioned. Doing so will help you in the long run by providing you with updateObject (at the cost of some

Re: [Rd] How to add a slot to S4 class of an existing package?

2010-09-07 Thread Kasper Daniel Hansen
Seb That thread and the resources in Biobase assumes that you have a class that extends Versioned. Doing so will help you in the long run by providing you with updateObject (at the cost of some complexity). However, it does not really help you if the existing class does not extend Versioned. In

Re: [Rd] How to add a slot to S4 class of an existing package?

2008-12-29 Thread Wolfgang Huber
Dear Christian this post from Martin Morgan on class versioning in Bioconductor's Biobase package might be relevant: https://stat.ethz.ch/pipermail/bioc-devel/2006-May/000545.html and also section 6 of this:

Re: [Rd] How to add a slot to S4 class of an existing package?

2008-12-29 Thread cstrato
Dear Wolfgang Thank you very much for pointing me to this link, in principle this would answer my question: Method updateObject() of package Biobase would be exactly what I am looking for. However, I have hoped that maybe there is also a solution for S4 classes in general. Somehow I feel

[Rd] How to add a slot to S4 class of an existing package?

2008-12-22 Thread cstrato
Dear all, Since my package is based on S4 classes, I would like to know how to add a slot to an existing S4 class without breaking the code of users of my package. Assume the following S4 class: setClass(MyClass, representation(name = character, type = character,