Reputation: 2415
I am creating a R-package and I am at the step where I BUILD
the package.
I have read the Writing R Extensions documentation about NAMESPACE (more specifically the sections 1.5.1 and 1.5.2 on import, export and on registering S3method).
I am worrying about this step because when I CHECK
my package I got this warning:
Found the following apparent S3 methods exported but not registered: print.myClass print.myOtherClass summary.myClass summary.myOtherClass See section 'Registering S3 methods' in the 'Writing R Extensions' manual.
Any help in deciphering what are the consequences of not registering a S3method and about the NAMESPACE file in general would make my day.
Thanks for your help.
Upvotes: 5
Views: 1423
Reputation: 1190
I would bet 10:1 that you wrote something like
export(print.myClass)
in the namespace. Instead, you need to write
S3method(print, myClass)
Upvotes: 8