[Rd] setMethod sometimes fails to set package slot when signature has trailing 'ANY'

2012-08-05 Thread Martin Morgan
after this setClass("A") setGeneric("bar", function(x, y) standardGeneric("bar")) setMethod(bar, signature(x="A", y="A"), function(x, y) {}) setMethod(bar, signature(x="A", y="ANY"), function(x, y) {}) the method for signature c("A", "A") contains package information > str(getMethod(ba

Re: [Rd] setting invalid fields on reference classes sometimes allowed

2012-08-05 Thread John Chambers
This doesn't seem to have anything to do with reference classes but rather is deep in the evaluator. At least when set up in the simple form of your example, the $<- method is never called. For example: Foo <- setRefClass("Foo") foo <- Foo$new() find("$<-") [1] "package:base" debug(base:

[Rd] setting invalid fields on reference classes sometimes allowed

2012-08-05 Thread Michael Lawrence
I've found that reference class objects tend to behave like plain old environments wrt field access, unless a method on e.g. $<- is explicitly defined. Here is a code snippet: library(methods) Foo <- setRefClass("Foo") foo <- Foo$new() foo$a <- 2 # why does this succeed? not a valid field! ## se

Re: [Rd] Interaction between callNextMethod() and selectMethod()

2012-08-05 Thread peter dalgaard
On Aug 5, 2012, at 04:16 , Simon Urbanek wrote: > > On Aug 4, 2012, at 9:49 PM, Hervé Pagès wrote: > >> On 08/03/2012 11:44 PM, peter dalgaard wrote: >>> >>> On Aug 4, 2012, at 01:24 , Hervé Pagès wrote: >>> BTW, it's funny that the VERSION file in the R source tree says: hpag

Re: [Rd] Daily snapshots of sources do not work?

2012-08-05 Thread Prof Brian Ripley
On 05/08/2012 08:53, Rainer Hurling wrote: For some days now there had been no more daily snapshots on ftp://ftp.stat.math.ethz.ch/Software/R/ . The latest sources are from 07/26/2012. I think this is not indented? Whatever '07/26/2012' means! __

[Rd] Daily snapshots of sources do not work?

2012-08-05 Thread Rainer Hurling
For some days now there had been no more daily snapshots on ftp://ftp.stat.math.ethz.ch/Software/R/ . The latest sources are from 07/26/2012. I think this is not indented? __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-d