[Rd] S4 generic masking S3 generic when using namespace

Gad Abraham gabraham at csse.unimelb.edu.au
Wed Mar 11 01:59:30 CET 2009


Sklyar, Oleg (London) wrote:
> Try using setGeneric("predict") without further arguments, this should
> work as it will take the existing 'predict' definition and convert it
> into S4 generic. This works nicely for me for all plot, print etc
> methods
> 
> * R   
> *** R 2.9.0 (svn -r 47821) [/share/research/R-devel/20090203/lib64/R]
> ***
>> setGeneric("predict")
> [1] "predict"

Great, thanks.

-- 
Gad Abraham
MEng Student, Dept. CSSE and NICTA
The University of Melbourne
Parkville 3010, Victoria, Australia
email: gabraham at csse.unimelb.edu.au
web: http://www.csse.unimelb.edu.au/~gabraham



More information about the R-devel mailing list