Re: [Rd] R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?

2007-07-28 Thread Oleg Sklyar
John, thank you for clarification. I just wonder that some packages could also see that their behaviour has changed. Anyway, I redefined Arith as the rest seems to work fine and also it is pretty straight forward in my case what the result of Arith should be. Thanks again. Oleg On Sat, 2007-07-28

Re: [Rd] R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?

2007-07-28 Thread John Chambers
Yes, this is the intended behavior. Nothing to do with implicit generics, but with some ongoing changes to make class "structure" and related classes such as "array" give trustworthy results consistent with the S language idea of vector structures. There's a short note in NEWS about the chang

Re: [Rd] R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?

2007-07-23 Thread Oleg Sklyar
Narrowed down to Rev. 42246: * ~/R/Rsvn: svn up -r42245 * ~/R/Rsvn: make * ~/R/Rsvn: Rsvn CMD INSTALL ~/tmp/EBImage_2.1.13.tar.gz * ~/R/Rsvn: Rsvn > version$version.string [1] "R version 2.6.0 Under development (unstable) (2007-07-16 r42245)" > library(EBImage) > a <- Image(0,c(2,2)) > class(a+a)

Re: [Rd] R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?

2007-07-23 Thread Prof Brian Ripley
I believe this occurred with the change to make use of implicit generics, r42246. Please check that for yourself (see the comment at the end). If so it will need John Chambers' attention (he is currently offline). On Mon, 23 Jul 2007, Oleg Sklyar wrote: > Hi, > > I have an S4 class directly de

[Rd] R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?

2007-07-23 Thread Oleg Sklyar
Hi, I have an S4 class directly derived from 'array' as shown in the code below (EBImage package of Bioconductor 2.1, devel), it simply contains array adding a couple of slots: setClass ("Image", representation (colormode="integer", filename="character", compression="character", resolution