Displaying 2 results from an estimated 2 matches for "r59963".
Did you mean:
559963
2012 Jul 26
3
rep fails on pairlist
This code which has worked for years in R but fails under R-devel:
> R.version.string
[1] "R Under development (unstable) (2012-07-25 r59963)"
>
> n <- 3
> f <- function(x) {}
> formals(f) <- rep(formals(f), n) ##
Error in rep(formals(f), n) : replication of pairlists is defunct
The message suggests that the change was intentional.
Why was this functionality removed?
What code should be used in its place?
--...
2012 Aug 03
1
Interaction between callNextMethod() and selectMethod()
Hi,
Strange things happen. Here is a simple example:
> setClass("A", contains="integer")
> setMethod("as.matrix", "A", function(x, ...) t(callNextMethod()))
Creating a generic function for ?as.matrix? from package ?base? in
the global environment
[1] "as.matrix"
> a <- new("A", 1:3)
> as.matrix(a)