Skip to content
Prev 325248 / 398503 Next

Proper way to implement package internal functions

On 12/06/2013 10:44 AM, Bryan Hanson wrote:
The best way to do this is simply not to export those functions in your 
NAMESPACE file.  If you want to use a naming convention
internally to remind yourself that those are private, you can do so, but 
R doesn't force one on you, and there are no really popular conventions 
in use.   R won't complain if you don't document those functions at all.

There may have been other advice in the version 1.6.1 manual, but that 
is seriously out of date, more than 10 years old.  I recommend that you 
update to 3.0.1.

Duncan Murdoch