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

Stephen Pope Stephen.Pope at ubs.com
Thu Jan 25 17:33:45 CET 2007


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 at 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}}



More information about the R-devel mailing list