Skip to content
Prev 952 / 21307 Next

[Bioc-devel] Importing generic functions from other pkgs and defining methods on them?

Hi Wolfgang,

Wolfgang Huber <huber at ebi.ac.uk> writes:
I had a quick look and it is strange.  

logLik is an S3 generic defined in stats.  You import it and define an
S4 generic with the same name using the S3 generic as default.

At the command line, you get the S4 generic.  Within your package
code -- e.g. if you debug inside tilingArray:::plotPenLL -- then you
get the one that was imported, that is, the S3 generic.  This causes
the error.

I thought at first it was the lack of a Collate field and that the
plotPenLL was being defined before the generic, but that isn't the
issue.

I have to run right now, but you might want to try calling
tilingArray::logLik inside plotPenLL and see if that helps.  That
would be a temporary fix.

A bit more investigation is needed.  This could be a bug in
R/methods/namespace.

Best,

+ seth