Hi,

I'm trying to make a package defining a new (S3?) class. Part of this
involves a custom version of a binary operator. e.g. "*.foo", so I can
do obj.foo * bar, or things like that.

Now, I think to makes this work with a NAMESPACE, I can do

S3method("*", foo)

in the NAMESPACE file, right? The question I was wondering was what
the appropriate way to document this operator is. i.e. What should I
put in the \usage section, etc?

'Writing R Extensions' doesn't seem to see much about this, but maybe
I'm missing something obvious.

Thanks,

Zhou Fang

______________________________________________
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