Re: [Rd] namespace S3 and S4 generic imports cannot both be satisfied:

2012-12-14 Thread Martin Morgan
On 12/09/2012 08:27 PM, John Chambers wrote: Yes, you are right. Mixing S3 and S4 methods for a generic is fine, although in subtle cases one is safer promoting the S3 method to an S4 method, as you did in your example. Usually, the default method for the S4 generic is the S3 generic. But, in

Re: [Rd] namespace S3 and S4 generic imports cannot both be satisfied:

2012-12-09 Thread John Chambers
Yes, you are right. Mixing S3 and S4 methods for a generic is fine, although in subtle cases one is safer promoting the S3 method to an S4 method, as you did in your example. Usually, the default method for the S4 generic is the S3 generic. But, in general, it's not possible to check algori

[Rd] namespace S3 and S4 generic imports cannot both be satisfied:

2012-12-08 Thread Martin Morgan
PkgA wishes to write a method for 'unique' on S4 class 'A'. ?Methods indicates that one should setGeneric("unique") setClass("A") unique.A <- function(x, incomparables=FALSE, ...) {} setMethod(unique, "A", unique.A) Both S3 and S4 methods need to be exported in the NAMESPACE import(