From Stephen.Pope at ubs.com  Thu Jan 25 17:33:45 2007
From: Stephen.Pope at ubs.com (Stephen Pope)
Date: Thu, 25 Jan 2007 09:33:45 -0700
Subject: [Rd] "rep" missing from methods:::.BasicFunsList
Message-ID: <45B8DBE9.2040802@ubs.com>


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



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