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
Allen McIntosh wrote:
> 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 , x, y) { new definition }
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 , x, y) { new definition }
>> , where="package:pkg")
>> results i
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 , x, y) { new definition }
> , where="package:pkg")
>
>
> results in the error
>
> Erro
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, :