Re: [Rd] (PR#9254)R script editor fails to read script longer then 1000 chars (non-English language settings)

2006-09-26 Thread Prof Brian Ripley
Yes, thank you. The conditions are that you are running in a locale with a different encoding from the system codepage, when a limit in graphapp was hit (so although the script is read correctly, it was not displayed correctly). Fixed for 2.4.0. On Tue, 26 Sep 2006, [EMAIL PROTECTED] wrote:

Re: [Rd] Not all functions work in RSPerl package?

2006-09-26 Thread Xianjun Dong
Hi, Prof Duncan I am sorry to report to a wrong place. But I am lucky to meet you by chance, right? Thanks first ^^ 1. The variable y1 is an array get from Perl, each element is from a database (the type should be numeric). Here is the code for that. $query = qq{ select

[Rd] modifs on ls

2006-09-26 Thread Romain Francois
Hi all, It would be great to be able to use a syntax like : R> ls("grid:::grid\.") instead of : R> ls("package:grid", pattern = "^grid\.") Here is a modified version of `ls` that does the job. [ The only modifs are just after the if(!missing(name)) ] Does that make sense ? Cheers, Romain

Re: [Rd] sprintf behavior (PR#9250)

2006-09-26 Thread Bill Dunlap
On Mon, 25 Sep 2006 [EMAIL PROTECTED] wrote: > On Mon, 25 Sep 2006, [EMAIL PROTECTED] wrote: > ... > > sprintf("\p") doesn't show the backslash, this occurs with all strings that > > start with certain letters. There is however no explanation to this > > behavior. > > There is: see ?Quote (and C

Re: [Rd] S4 accessors

2006-09-26 Thread Seth Falcon
Ross Boylan <[EMAIL PROTECTED]> writes: > Did you want this offlist? I'm happy keeping it on the list. No, I accidentally responded privately and I believe I already resent my reply to the list. Sorry about that. I've cc'd the list for this response. >> If anyone else is going to extend your c

Re: [Rd] S4 accessors

2006-09-26 Thread Ross Boylan
On Tue, 2006-09-26 at 10:43 -0700, Seth Falcon wrote: > Ross Boylan <[EMAIL PROTECTED]> writes: > >> If anyone else is going to extend your classes, then you are doing > >> them a disservice by not making these proper methods. It means that > >> you can control what happens when they are called o

[Rd] Infinite Loop when installing a package from source (PR#9258)

2006-09-26 Thread charles . dupont
Full_Name: Charles Dupont Version: Version 2.3.1 OS: linux Submission from: (NULL) (160.129.129.136) I think that this is infinite. I let it run for 30 minutes. During which it consumed 98% of my memory (1Gb) and steadily helled 90-99% of CPU. Steps to reproduce problem 1. get a source packag

[Rd] standardization of slot access

2006-09-26 Thread Sebastian P. Luque
Hi, I'm usually confused about when to use 'slot' or '@'. I've frequently read that it's always preferable to use accessor functions, so I would think the '@' operator should be avoided. However, ?slot contains the following advise: "Generally, the only reason to use the functional form rather

Re: [Rd] standardization of slot access

2006-09-26 Thread Gabor Grothendieck
I think the point is that if you use @ and then later redesign the internals of the class so that that component is not longer stored but is, instead, computed then @ will no longer be possible to use in that instance and a method call will be required which means that the internal change implies t

Re: [Rd] standardization of slot access

2006-09-26 Thread Roger D. Peng
I think slot() is only necessary in the case where you have a <- "myslot" slot(object, a) which is equivalent to [EMAIL PROTECTED] It seems unlikely that you would use slot() during interactive use, but perhaps more so in programming. Even still, I rather infrequently find the need for slot(

Re: [Rd] standardization of slot access

2006-09-26 Thread Tony Plate
I believe that the "accessor" functions you've read about are not the slot() function, rather they are functions specifically designed for extracting certain data from an object. An example is the 'coef()' extractor function, which extracts coefficients from many model objects. The name of t

Re: [Rd] standardization of slot access

2006-09-26 Thread Sebastian P. Luque
Thank you all for your comments, which confirm the feeling I had that 'slot' is only needed in the rare occasions Roger mentioned. Although 'slot' is an accessor function, it seems it's not quite analogous to functions or methods for accessing components of objects. Cheers, -- Seb ___

Re: [Rd] standardization of slot access

2006-09-26 Thread Roger Bivand
On Tue, 26 Sep 2006, Sebastian P. Luque wrote: > Thank you all for your comments, which confirm the feeling I had that > 'slot' is only needed in the rare occasions Roger mentioned. Although > 'slot' is an accessor function, it seems it's not quite analogous to > functions or methods for accessin