[Rd] "rep" missing from methods:::.BasicFunsList

From: Stephen Pope <Stephen.Pope_at_ubs.com>
Date: Thu 25 Jan 2007 - 16:33:45 GMT

With:

R version 2.4.1 Patched (2007-01-22 r40548)

"rep" is missing from methods:::.BasicFunsList, causing methods:::genericForPrimitive("rep") to fail, which in turn causes setMethod("rep", ...) to fail. (setGeneric("rep") of course fails as it should, saying that rep is a primitive and methods can be set).

Here's the fix:

build_main@mambo:/vobs/products/R> gdiff -ub src/library/methods/R/BasicFunsList.R@@/main/LATEST src/library/methods/R/BasicFunsList.R
--- src/library/methods/R/BasicFunsList.R@@/main/LATEST Tue Jan 23 22:55:28 2007
+++ src/library/methods/R/BasicFunsList.R Wed Jan 24 23:56:32 2007 @@ -116,6 +116,10 @@
 }
, "missing" = FALSE
, "on.exit" = FALSE

+, "rep" = function(x, ...)
+{
+    standardGeneric("rep")
+}

, "substitute" = FALSE
, "symbol.C" = FALSE
, "symbol.For" = FALSE

Visit our website at http://www.ubs.com

This message contains confidential information and is intend...{{dropped}}



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jan 26 03:46:06 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 31 Jan 2007 - 17:31:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.