Re: [Rd] S3 objects in S4 slots

2009-09-16 Thread John Chambers
Duncan Murdoch wrote: On 16/09/2009 12:50 PM, John Chambers wrote: 2. Restricting the revision to setOldClass() leads to a clean concept, and makes the S3 class more compatible with S4 classes. The proposal at the moment is to interpret the setOldClass call much like the corresponding setCl

Re: [Rd] S3 objects in S4 slots

2009-09-16 Thread Duncan Murdoch
On 16/09/2009 12:50 PM, John Chambers wrote: Martin Kober wrote: 2009/9/15 John Chambers : I'll look at this in more detail (though not for a few days), but the essence I think is that nothing in the current version allows one to say the S3 equivalent of setClass("VCorpus", contains = "list

Re: [Rd] S3 objects in S4 slots

2009-09-16 Thread John Chambers
Martin Kober wrote: > 2009/9/15 John Chambers : > >> I'll look at this in more detail (though not for a few days), but the >> essence I think is that nothing in the current version allows one to say the >> S3 equivalent of >> >> setClass("VCorpus", contains = "list", ) >> >> Seems a (minor,

Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread Martin Kober
2009/9/15 John Chambers : > I'll look at this in more detail (though not for a few days), but the > essence I think is that nothing in the current version allows one to say the > S3 equivalent of > > setClass("VCorpus", contains = "list", ) > > Seems a (minor, I hope) glitch that what Martin K.

Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread John Chambers
I'll look at this in more detail (though not for a few days), but the essence I think is that nothing in the current version allows one to say the S3 equivalent of setClass("VCorpus", contains = "list", ) Seems a (minor, I hope) glitch that what Martin K. tried didn't work: setOldClass

Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread Martin Morgan
Hi Martin Kober -- Martin Kober wrote: > Hello, > > I am the maintainer of the stringkernels package and have come across > a problem with using S3 objects in my S4 classes. > > Specifically, I have an S4 class with a slot that takes a text corpus > as a list of character vectors. tm (version 0.

Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread Duncan Murdoch
On 15/09/2009 7:34 AM, Martin Maechler wrote: Duncan Murdoch on Tue, 15 Sep 2009 06:26:32 -0400 writes: > Martin Kober wrote: >> Hello, >> >> I am the maintainer of the stringkernels package and have come across >> a problem with using S3 objects in my S4 classes.

Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread Martin Maechler
> Duncan Murdoch > on Tue, 15 Sep 2009 06:26:32 -0400 writes: > Martin Kober wrote: >> Hello, >> >> I am the maintainer of the stringkernels package and have come across >> a problem with using S3 objects in my S4 classes. >> >> Specifically, I have an S4

Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread Duncan Murdoch
Martin Kober wrote: Hello, I am the maintainer of the stringkernels package and have come across a problem with using S3 objects in my S4 classes. Specifically, I have an S4 class with a slot that takes a text corpus as a list of character vectors. tm (version 0.5) saves corpora as lists with a

[Rd] S3 objects in S4 slots

2009-09-15 Thread Martin Kober
Hello, I am the maintainer of the stringkernels package and have come across a problem with using S3 objects in my S4 classes. Specifically, I have an S4 class with a slot that takes a text corpus as a list of character vectors. tm (version 0.5) saves corpora as lists with a class attribute of c(