Re: [Rd] generic function S3 consistency warning advice

2005-09-01 Thread Henrik Bengtsson
This happens because you get a primitive function. However, I believe Re() is already an generic function ("too") internally, so you do not have to create your own and redefine the default one. (I'm not sure if there is another way to tell if a primitive function is also a generic function tha

[Rd] generic function S3 consistency warning advice

2005-09-01 Thread Robin Hankin
Hi section 6.1 of R-exts suggests that a package can take over a function in the base package and make it generic. I want to do this with Re() and have the following lines in my R code: "Re" <- function(x){UseMethod("Re" )} "Re.default" <- get("Re" ,pos=NULL,mode="function") "Re.octonion" <