Re: [Rd] S3 objects in S4 slots

2009-09-15 Thread Martin Kober
eed a workaround.  And as Martin Maechler > commented, the intention is to make S3 and S4 classes play together as much > as possible. > Thanks to Martin Morgan for the workaround, it works very well. > > Morgan wrote: > > Hi Martin Kober -- > Martin Kober wrote: > > &

[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(

[Rd] Accessing an object from the function in its .Data slot?

2009-06-23 Thread Martin Kober
I have an S4 object extending "function". Is it there a good way to access the object (resp. its slots) from within the function in .Data? If I'm reading help files correctly, it is not possible to overload '(' (which would be the most elegant solution, I suppose). I can enclose the slotted data

Re: [Rd] R can't source() long lines (PR#10383)

2007-10-30 Thread martin . kober
t is basically useless). Note that ?dump states that "A warning is issued if it is likely that problems will arise" (in different context, but still). Best Regards > On Tue, 30 Oct 2007, [EMAIL PROTECTED] wrote: > > > Full_Name: Martin Kober > > Version: 2.6.0 > &

[Rd] R can't source() long lines (PR#10383)

2007-10-29 Thread martin . kober
Full_Name: Martin Kober Version: 2.6.0 OS: Vista & Linux Submission from: (NULL) (137.208.185.169) Hi! I just stumbled upon a problem with file source()ing: R will fail to source a file if it contains lines longer than about 8192 bytes ("input buffer overflow"). While it'