From: maclean@stout.atd.ucar.edu (Gordon Maclean) Date: Sat, 3 Jan 1998 01:20:34 GMT Message-Id: <199801030120.BAA01225@ripple.atd.ucar.edu> To: r-help@stat.math.ethz.ch Subject: R-beta: NextMethod(.Generic) bug Content-MD5: PbzoZpZX4aMj13ZwQsCukw== Sender: owner-r-help@stat.math.ethz.ch Precedence: bulk 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._