Re: [Rd] List S3 methods and defining packages

2015-07-08 Thread Renaud Gaujoux
Thanks Kevin, this indeed clarifies a bit the S3 method registration universe. On 8 July 2015 at 15:48, Kevin Wright wrote: > Not sure if this answers your question, but you can't unregister a method. > See > > http://tolstoy.newcastle.edu.au/R/help/06/07/30791.html > > Kevin Wright > > > On We

Re: [Rd] List S3 methods and defining packages

2015-07-08 Thread Renaud Gaujoux
Thank you for your reply Martin. Your code made me realize that S3 methods are added to the .__S3MethodsTable__. of the package that defines the generic, not to the ones defining the method itself. How does things work in the case of a method from one package B masking the one from another package

Re: [Rd] List S3 methods and defining packages

2015-07-07 Thread Martin Morgan
On 07/07/2015 02:05 AM, Renaud Gaujoux wrote: Hi, from the man page ?methods, I expected to be able to build pairs (class,package) for a given S3 method, e.g., print, using attr(methods(print), 'info'). However all the methods, except the ones defined in base or S4 methods, get the 'from' valu

[Rd] List S3 methods and defining packages

2015-07-07 Thread Renaud Gaujoux
Hi, from the man page ?methods, I expected to be able to build pairs (class,package) for a given S3 method, e.g., print, using attr(methods(print), 'info'). However all the methods, except the ones defined in base or S4 methods, get the 'from' value "registered S3method for print", instead of th