search for: makeasmethod

Displaying 1 result from an estimated 1 matches for "makeasmethod".

2007 Apr 15
0
as() creates invalid entries in methods list?
...declaration should do any harm in theory, but in practice it seems to trigger subtle bugs in the methods package. + seth --- a/src/library/methods/R/as.R +++ b/src/library/methods/R/as.R @@ -37,9 +37,6 @@ as <- test <- ext at test asMethod <- .makeAsMethod(ext at coerce, ext at simple, Class, Clas canCache <- (!is(test, "function")) || identical(body(test), - if(canCache) { # make into method definition - asMethod <- .asCoerceMethod(asMethod, sig, FALSE) - }...