Skip to content
Prev 33967 / 63424 Next

Monkey patching +.POSIXt

Hmmm... 'assign.to.base( "+.POSIXt", myfun)' works on my system (2.9.1 patched on Windows, at time of writing). Could be the 'mvbutils' version, I guess. What happened when you tried it? And what if you did 'getAnywhere( "+.POSIXt")' afterwards?

I was wrong about where '+.POSIXt' lives, though-- sorry. It is directly in 'baseenv()', not in 'baseenv().__S3MethodsTable__.'.  'assign.to.base' looks in both, and in other packages as well as 'baseenv()'.

Mark