On 19.07.2012 22:44, zgu9 wrote:
Hi all,

I'm trying to build a package 'Thiele', but run into problems with generic
functions.
I have a class "Benefit", and defined the function "print.Benefit".
When I try "R CMD check Thiele" in X11, this warning came out
-------
Functions/methods with usage in documentation object 'Benefit' but not in
code:
   print


You need

\S3method{print}{Benefit}(.......)

in the usage line rather than

print(.......)

Best,
Uwe Ligges


-------
Do I need to write a new "print" Rd document into R file in that Package? If
so, how can I write it?
I read the section 7 "Generic functions and methods" in the 'Writing R
Extensions' manual. But I'm still not clear how to figure out my problem.

Thanks!
Eric

--
View this message in context: 
http://r.789695.n4.nabble.com/generic-functions-question-in-building-a-new-package-tp4637129.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to