From ripley@stats.ox.ac.uk  Mon Jan 20 10:41:02 2003
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Mon Jan 20 10:41:02 2003
Subject: [Rd] Methods package is now attached by default
In-Reply-To: <Pine.LNX.4.51.0301201020390.25042@artemis.imbe.med.uni-erlangen.de>
Message-ID: <Pine.LNX.4.44.0301200935370.2333-100000@gannet.stats>

On Mon, 20 Jan 2003, Torsten Hothorn wrote:

> I think Brian is right with altering UseMethod() in a way taking care of
> what class() tells us.

We have agreed to do that.

> I can fix the code for ipred. The only problem is making it work for both
> R-1.6.2  AND  R-devel :-)

Use

  attr(x, "class") <- data.class(x)

*but* please don't fix anything until we decide what 1.7.0 is going to do.
That's despite my having fixed MASS but that is part of the R-devel 
checking process.

(Incidentally, we need to ensure that 1.7.0 acts consistently with and 
without methods loaded, so code like this may still be needed.)

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Methods package is now attached by default
ripley@stats.ox.ac.uk