Re: [Rd] Overloading S4 methods

2011-06-07 Thread Iago Mosqueira
On Mon, Jun 6, 2011 at 11:28 PM, John Chambers wrote: > This is a bug, medium-subtle, but also raises an interesting software design > point. > > The Bug: > > Nothing specific about "ANY" and "missing", but the issue is whether the > method was inherited (the "ANY" case) or defined directly (the "

Re: [Rd] Interfacing a C++ class

2011-06-07 Thread soeren . vogel
On 06.06.2011, at 13:42, Romain Francois wrote: > Le 04/06/11 16:31, soeren.vo...@uzh.ch a écrit : > >> FOO is the C++ object, and Foo should be the S4 class. If the user creates >> an object, say bar, from class Foo, the creation process automatically makes >> a new FOO object relating to bar

[Rd] Cases of TAB-completion that hang Rterm

2011-06-07 Thread Henrik Bengtsson
FYI, via a bug report of one of my packages, I discovered that the following cases will hang Rterm when using TAB completion: CASE #1: Adding an empty default function for tail() causes Rterm on Windows to hang if one press TAB at the prompt: % Rterm -vanilla > tail.default <- function(...) {} >

Re: [Rd] Does anybody successfully built latest R on AIX 5.3?

2011-06-07 Thread Xiaobo Gu
I am trying to install http://www.oss4aix.org/download/RPMS/gcc/gcc-4.2.4-2.aix5.3.ppc.rpm but it dependents on package info, which I can't find a version for AIX 5.3, can anyone who success fully built R on AIX 5.3 share which version of gcc and the related packages to use, and where to download

[Rd] Packages for R-CRAN (organizing aspects)

2011-06-07 Thread oliver
Hello, I have some ideas for packages that I want to provide on R-CRAN. One package alreads is working, but I have some warnings in when compiling. Also I don't know if the libraries in use are only working on Unix/Linux. So I have some general questions: - If I'm not sure if the code would a

[Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-07 Thread oliver
Hello, following an advice here from the list I looked into sources of other packages (xts) and found the TYPEOF() macro/function, which really is helpful. I iused the follwong code snippet: switch( TYPEOF( filename_sexp ) ) { case STRSXP: filename = CHAR( STRING_ELT(filename_sexp,

Re: [Rd] Overloading S4 methods

2011-06-07 Thread luke-tierney
On Mon, 6 Jun 2011, John Chambers wrote: This is a bug, medium-subtle, but also raises an interesting software design point. The Bug: Nothing specific about "ANY" and "missing", but the issue is whether the method was inherited (the "ANY" case) or defined directly (the "missing" case). Ge

Re: [Rd] Packages for R-CRAN (organizing aspects)

2011-06-07 Thread Gabor Grothendieck
On Tue, Jun 7, 2011 at 9:03 AM, oliver wrote: > Hello, > > I have some ideas for packages that I want to provide on R-CRAN. > > One package alreads is working, but I have some warnings in > when compiling. Also I don't know if the libraries in use are only > working on Unix/Linux. > > So I have so

Re: [Rd] "warning: assignment discards qualifiers from pointer target type"

2011-06-07 Thread Duncan Murdoch
On 07/06/2011 9:08 AM, oliver wrote: Hello, following an advice here from the list I looked into sources of other packages (xts) and found the TYPEOF() macro/function, which really is helpful. I iused the follwong code snippet: switch( TYPEOF( filename_sexp ) ) { case STRSXP: f

Re: [Rd] Reference Classes: shortcut like 'isS4' for Ref Classes?

2011-06-07 Thread Janko Thyson
Thanks for the answer! Sorry, must have missed that part of the help page. Your second approach is exactly what I was looking for. Regards, Janko On 06.06.2011 23:38, John Chambers wrote: As it says on the help page ?ReferenceClasses: All reference classes inherit from the class "envRefClass"

Re: [Rd] Packages for R-CRAN (organizing aspects)

2011-06-07 Thread oliver
On Tue, Jun 07, 2011 at 10:30:12AM -0400, Gabor Grothendieck wrote: > On Tue, Jun 7, 2011 at 9:03 AM, oliver wrote: > > Hello, > > > > I have some ideas for packages that I want to provide on R-CRAN. > > > > One package alreads is working, but I have some warnings in > > when compiling. Also I don

Re: [Rd] Packages for R-CRAN (organizing aspects)

2011-06-07 Thread Gabor Grothendieck
On Tue, Jun 7, 2011 at 12:00 PM, oliver wrote: > > What about the documentation. > if I look for it on r-cran, but the module is form r-forge there will > be a mismatch. ?, vignette(...) and library(help=...) will give help that corresponds to the package you installed. -- Statistics & Software

Re: [Rd] Overloading S4 methods

2011-06-07 Thread John Chambers
Yes, Dylan is in many ways more authoritarian than R! Possibly also with fewer users to be annoyed. We might go to a warning as Iago suggests. If we did add a warning, it would be likely be more useful in the setMethod() call than at CMD check time, after the package has been designed and im

Re: [Rd] Overloading S4 methods

2011-06-07 Thread luke-tierney
On Tue, 7 Jun 2011, John Chambers wrote: Yes, Dylan is in many ways more authoritarian than R! Possibly also with fewer users to be annoyed. Huh? A convention in a programming book is more authoritarian than a warning as you are proposing (not that I am opposed to that -- I think it's probabl

Re: [Rd] Overloading S4 methods

2011-06-07 Thread Iago Mosqueira
Can then the warning be turned off in any way to avoid it showing up on check? Maybe an argument to confirm 'I know what I am doing so I need no warning, thank you very much'. Iago On Tue, Jun 7, 2011 at 7:06 PM, John Chambers wrote: > Yes, Dylan is in many ways more authoritarian than R!  Poss

Re: [Rd] Overloading S4 methods

2011-06-07 Thread John Chambers
On 6/7/11 2:02 PM, Iago Mosqueira wrote: Can then the warning be turned off in any way to avoid it showing up on check? Maybe an argument to confirm 'I know what I am doing so I need no warning, thank you very much'. Well, this is still new territory since the bug didn't seem to have been enco