Skip to content
Prev 25432 / 63424 Next

conflict between lme4 and RMySQL packages (PR#9753)

On 6/26/2007 9:07 AM, Martin Maechler wrote:
I think a better conceptualization is that when S4 converts a function 
or S3 generic into an S4 generic, it does the conversion in place.

The original summary() is an S3 generic living in base, and everyone 
imports base, so it's not a good example.

A better example would be one of the S3 generics in the stats namespace, 
e.g. start().  If they're importing the generic from stats and 
converting it to an S4 generic, then their code should work with anyone 
else who did the same.  I think the easiest way to do this would be if 
we actually replaced the original S3 generic right in the stats 
namespace, but there might be other ways to implement it.

On the other hand, I can see someone defining a generic named start() 
completely independently of the time series meaning in stats, and 
exporting it from their package.  In this case it should live in their 
namespace, and only people who import that namespace will see it.

Duncan Murdoch