Skip to content
Prev 32341 / 398513 Next

"locked environment"

On Wed, 21 May 2003, Heywood, Giles wrote:

            
lag() is in package ts, which has a namespace these days.  Why are you
setting S4 methods on S3 generics?  You will be able to set S3 methods.
function (x, ...)
UseMethod("lag")
<environment: namespace:ts>
function (x, ...)
UseMethod("diff")
<environment: namespace:base>

(and BTW the base namespace is somewhat different and not locked).
The combination of S4 methods and namespaces is not supported, so if you 
need this you will need to define the S4 generic somewhere you own.