Duncan Murdoch wrote:
> I think you can set the environment of your method to see the package
> internals. Those internals won't see your method, though.
>
> To do this, you'd do something like
>
> newfoo <- function(obj , x, y) { new definition }
> environment(newfoo) <- environment(foo) # or
Seth Falcon wrote:
> Allen McIntosh <[EMAIL PROTECTED]> writes:
>> Is it possible to override S4 methods in an installed package?
>> The naive
>> library("pkg")
>> setMethod("foo", signature(obj = "bar"),
>> function(obj
Is it possible to override S4 methods in an installed package?
The naive
library("pkg")
setMethod("foo", signature(obj = "bar"),
function(obj , x, y) { new definition }
, where="package:pkg")
results in the error
Error in setMethod("foo", signature(obj = "bar"), function(obj, :
This failure is reproducible:
1) This requires a machine without "makeinfo". I ran into it on a
RedHat 9.0 system, but I doubt the OS matters.
2) unpack the R-2.2.0 source tarball
3) cd R-2.2.0
4) ./configure ; make ; make check ; make install
[add configure args as appropriate; works fi