On Thu, Mar 14, 2013 at 3:31 AM, Lukas Lehnert <lukaslehn...@googlemail.com>wrote:
> Dear R-developers, > > in a new package, I'm currently working on, I tried to add a new method to > function "t.test". The new class, on which the method is based, is called > "speclib", so I defined the funcion for the new method as "t.test.speclib". > You shouldn't have a problem if you tell R it is a method for t.test. In the NAMESPACE, use S3method(t.test, speclib) rather than exporting the function by name, and in the usage section of the help page use \method{t.test}{speclib} > R CMD check now gives always a warning, that S3 methods are not consistent, > because R does not recognize that the basic function name is "t.test" > instead > of "t": > > t: > function(x) > t.test.speclib: > function(x, y, paired, ...) > > > Is there any workaround or do I have to rename the t.test.speclib function > to > something like t_test.speclib? > > Thank you in advance > > Lukas > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Thomas Lumley Professor of Biostatistics University of Auckland [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel