[inlinedocs] A bug and a suggestion for S3 methods support

Keith Ponting k.ponting at aurix.com
Mon May 17 11:00:18 CEST 2010


The main issue is detecting whether a given function is an S3 method. Is
x.y an instance of method x for class y or just a function which happens
to be called x.y? I have some ideas as to how this could be done -
essentially look for a method x and examine its contents - but I would
rather find something more reliable and ideally supported by the core R
packages. However I am rather tied up at present, so it may be a few
weeks before I can spend much time on this...

Keith

Keith Ponting
Aurix Ltd, Malvern WR14 3SZ  UK
> -----Original Message-----
> From: inlinedocs-support-bounces at lists.r-forge.r-project.org
> [mailto:inlinedocs-support-bounces at lists.r-forge.r-project.org] On
> Behalf Of Toby Dylan Hocking
> Sent: 14 May 2010 20:00
> To: phgrosjean at sciviews.org
> Cc: inlinedocs-support at r-forge.wu-wien.ac.at
> Subject: Re: [inlinedocs] A bug and a suggestion for S3 methods
support
> 
> Hi, thanks for the helpful comments, and I'm glad to hear you like
using
> inlinedocs.
> 
> I was not able to reproduce the exact same error you had, but I see
what
> was happening, and I think I fixed it. The bugfix has been checked in
to
> SVN, rev 102, if you'd like to test it and make sure it works on your
> end.
> 
> Thanks for the insightful point about S3 methods. We have talked about
> generating proper \method markup for S3 methods on the list before,
but
> I haven't got around to it yet since it doesn't generate a warning in
R
> CMD check. Keith wrote some support for setMethodS3() definitions, but
I
> don't really use it, so maybe Keith would have a better idea of if it
> would be feasible anytime soon. It would be nice if we could
> automatically detect methods and avoid having to write something like
> ##<<method<<print<<object. In any case, if you manage to write some
code
> (maybe a new parser function?) that makes correct
> S3 method markup for the usage section, please tell us about it.
> _______________________________________________
> Inlinedocs-support mailing list
> Inlinedocs-support at lists.r-forge.r-project.org
>
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/inlinedocs-
> support


More information about the Inlinedocs-support mailing list