From wolski at molgen.mpg.de  Tue Sep  7 09:48:06 2004
From: wolski at molgen.mpg.de (Wolski)
Date: Tue Sep  7 09:48:10 2004
Subject: [Rd] package methods different behaviour R1.9.1 patched and R2.0.0
Message-ID: <200409070948060366.039FB48D@mail.math.fu-berlin.de>

Hi!

Concerning different behaviour between 1.9.1 patched and:
R : Copyright 2004, The R Foundation for Statistical Computing
Version 2.0.0 Under development (unstable) (2004-09-06), ISBN 3-900051-07-0

Subtitle:
as(x,"vector"); x is of class "Massvector"; never enters setAs("Massvector","vector"...

The same code:

as(mvl[[1]],"vector")
causes under R1.9.1 to enter the function
setAs("Massvector","vector"
      ,function(from)
...

This never happens under R2.0.0.

The class "Massvector" contains class "Matrix"

A phenomenological description of what happens instead with R2.0.0 is

as(as(mvl[[1]],"Matrix"),"vector")

and its not what I would expect.

Is this an intended behaviour in R2.0.0?

/E


[Rd] package methods different behaviour R1.9.1 patched and R2.0.0
Wolski