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

2012-08-03 Thread Hervé Pagès
Hi, Strange things happen. Here is a simple example: > setClass("A", contains="integer") > setMethod("as.matrix", "A", function(x, ...) t(callNextMethod())) Creating a generic function for ‘as.matrix’ from package ‘base’ in the global environment [1] "as.matrix" > a <- new("A", 1:3)

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

2012-08-03 Thread Hervé Pagès
FWIW, here is my sessionInfo: > sessionInfo() R Under development (unstable) (2012-07-25 r59963) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8L

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

2012-08-03 Thread peter dalgaard
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: > > hpages@latitude:~/src/R-2.16.r59963$ cat VERSION > 2.16.0 Under development (unstable) > ^^ What's funny about that? We no longer display the number on startup and at some