Skip to content

Controlling visibility of top-level functions

1 message · Greg Snow

#
One option that I have not seen mentioned yet, and may be the most
similar to the Python approach is to name the "Invisible" function
starting with a "." (the period).  Then the function will not appear
when you do `ls()` but is still accessible.  It however is not limited
in scope and it is still callable by anyone (and `ls(all=TRUE)` will
show it).  This does not give the control that packages or local
environments do, but it is a quick and easy way to have something that
"hidden".
On Fri, Jan 31, 2014 at 11:46 AM, Paul A. Steckler <steck at stecksoft.com> wrote: