R-beta: NextMethod(.Generic) bug
Gordon Maclean
maclean at stout.atd.ucar.edu
Sat Jan 3 02:20:34 CET 1998
I'm a day-old R newbie (but a war-weary S veteran), with couple of
first-day questions:
In R 0.61, this code fails.
Ops.test <- function(e1,e2)
{
e1 <- NextMethod(.Generic)
e1
}
x <- 4
class(x) <- "test"
y <- x < 3
The error message is "Error in NextMethod(.Generic) : negative length vectors
are not allowed.".
I assume it is a bug. It works in Splus 3.4. Is there a fix/workaround?
Also, why doesn't the "!" operator work on numeric values?
Thanks a bunch to all you R developers! I was very pleased to find R,
mainly because I want an "S" which runs on intel Unix.
Gordon Maclean
Nat'l Center for Atmospheric Research
Boulder CO USA
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list