[R] Functions in a package not visible to a user

Liaw, Andy andy_liaw at merck.com
Fri Jul 16 03:15:43 CEST 2004

That's one of the purposes of the namespace.  See Prof. Tierney's article in
the R Newsletter, or the slides of his keynote lecture at the useR! 2004
conference.  It's also explained in the `Writing R Extensions' manual.
Basically you only export functions that the users should see.  The manual
also explains how to not document functions that aren't intended to be
called by users.


> From: Rui Dantas
> Dear all,
> Sorry if this is obvious, but I couldn't find the answer in 
> any place I
> looked.
> I have a package with several R functions. Some are internal auxiliary
> functions, and should not be available to the user (nor do they, for
> example, need "user" documentation). How can I hide them?
> Best regards,
> Rui Dantas

More information about the R-help mailing list