[rkward-devel] [rkward-cvs] SF.net SVN: rkward:[4180] trunk/rkward/rkward/rbackend/rpackages/rkward/R
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon Mar 19 10:24:52 UTC 2012
Hi,
On Monday 19 March 2012, meik michalke wrote:
> > 2) For all functions starting with a dot, add some marker like '#TODO
> > REVIEW EXPORT' on the '@export'-line to remind us that we will have to
> > check whether it is really necessary to export these.
>
> i've tried to separate supposed internal functions already, by placing them
> in "internal*.R" files. so we can just check all functions in these files
> later, and if they need to be exported, rather move them to some other
> file.
good point. So essentially, any '@export'-tag inside an 'internal*.R' file
signifies a TODO. Yes, I think I agree that should be good enough.
> > 4) Over time, we will take a look at the functions marked for review, one
> > by one, and check whether / how they can be hidden from the export. (Is
> > there a corresponding tag like '@internal', '@private', '@noexport' or
> > something in roxygen? Otherwise, perhaps we should make up one
> > ourselves, to avoid ambiguities).
>
> the mechanism is that (only) functions/methods/classes marked "@export"
> will be exported (i.e. available to the user), and everything else remains
> internal without the need for further tagging. so once you remove the
> "@export" tag, a function will already be hidden.
Yes, I was aware of that. I was looking for a tag saying "somebody has
actually looked at this, and concluded it can really remain hidden". But then
I guess this may not be necessary after all. Once the NAMESPACE file is active,
forgetting to add an '@export' to a newly added function should result in an
obvious failure, anyway.
> that is, basically all there is left to do is to add the line "#' @export"
> before each function definition that is not tagged yet, and call
> roxygenize().
Yes. Would you do that?
Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20120319/eddcb3c0/attachment.sig>
More information about the Rkward-devel
mailing list