Thanks for the response, Thomas. I both exported the function and created a new S3-method in the namespace file. By removing the function from the export command, the problem was fixed...
Thanks for the help Lukas Am Freitag, 15. März 2013, 13:04:29 schrieb Thomas Lumley: > 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 [[alternative HTML version deleted]]
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel