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

Roger D. Peng rpeng at jhsph.edu
Fri Jul 16 04:30:10 CEST 2004


The old way was to define the internal functions inside the 
functions that used them.  Nowadays it's better to use a 
namespace.  `R CMD check' will only check code/docs for exported 
functions so non-exported/internal functions don't need to have a 
help file.

-roger

Rui Dantas wrote:
> 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list