Re: [Rd] typo in R Installation and Administration

2008-12-22 Thread Martin Maechler
YC == Yohan Chalabi chal...@phys.ethz.ch on Thu, 18 Dec 2008 18:16:33 +0100 writes: YC Hi all, There seems to be a typo in R Installation and YC Administration in B.7 Compile and load flags YC special flags for compiling Fortran 95 code to be YC turned into a shared library

[Rd] read.table with fill = TRUE

2008-12-22 Thread Gabor Grothendieck
There seems to be a problem with read.table when fill = TRUE in this case. In the example below, note that: - there should be 4 columns, not 3 - some rows like row 6 are cut off at the end - others like row 7 seem completely wrong Lines - x 1 b + x 1 a + x 2 b + x 2 a + x 2 + y 1 a 1 + y 10 a 2

[Rd] ... (dotMethods) and cbind/rbind: how to give the signature?

2008-12-22 Thread Claudia Beleites
Dear List, I'm struggling with the signature writing cbind/rbind functions for a S4 class. First of all, I'm very happy that it is now possible to dispatch on ... I follow the example for paste in ?dotMethods, which works as far as this: ### start example setClass (cbtest,

[Rd] methods vs. functions

2008-12-22 Thread Claudia Beleites
Dear List, a second, more general, question concerning S4 classes. I have a bunch of functions/methods for my class. At the moment I have them as methods, because they work on objects of my S4 class and therefore belong to that class. On the other hand, it is comparably unlikely that someone

[Rd] Align legend title

2008-12-22 Thread Gorjanc Gregor
Dear R developers, I needed to align the title of legend for some of my plots. If there is interest to include this into base R, bellow are the examples and the relevent diffs. Regards, Gregor x - 1:10 y1 - 1.5 * x y2 - 2.0 * x y - cbind(y1, y2)

Re: [Rd] methods vs. functions

2008-12-22 Thread Duncan Murdoch
On 12/22/2008 9:40 AM, Claudia Beleites wrote: Dear List, a second, more general, question concerning S4 classes. I have a bunch of functions/methods for my class. At the moment I have them as methods, because they work on objects of my S4 class and therefore belong to that class. On the

[Rd] Bug in list indexing (PR#13411)

2008-12-22 Thread murdoch
I was wondering if copies were made when a component of a complex nested list structure was extracted but not modified. I was happy that the answer was no, but was surprised that copies weren't made even if the extracted bit was modified: x - list(a=list(b=numeric(100))) y -

Re: [Rd] Bug in list indexing (PR#13411)

2008-12-22 Thread Duncan Murdoch
On 12/22/2008 1:55 PM, murd...@stats.uwo.ca wrote: I was wondering if copies were made when a component of a complex nested list structure was extracted but not modified. I was happy that the answer was no, but was surprised that copies weren't made even if the extracted bit was modified:

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

Re: [Rd] rscproxy version conflict

2008-12-22 Thread Erich Neuwirth
We found out about this problem only a few days ago. The reason is that the official binary packages were compiled with 2.8.1, but the distributed Windows binary of R was still 2.8.0. rscproxy needs to be compiled for the correct version of R. Now with R 2.8.1 being release officially the problem

Re: [Rd] rscproxy version conflict

2008-12-22 Thread Simon Urbanek
On Dec 22, 2008, at 15:30 , Erich Neuwirth wrote: We found out about this problem only a few days ago. The reason is that the official binary packages were compiled with 2.8.1, but the distributed Windows binary of R was still 2.8.0. rscproxy needs to be compiled for the correct version of R.