Skip to content
Prev 336180 / 398513 Next

Controlling visibility of top-level functions

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:

  
    
Message-ID: <CAFEqCdx3jt1eBpzjP0cBGLoBNyDbev6zra+SDqziBt4fMu1YHw@mail.gmail.com>
In-Reply-To: <CAMSKV5cPPHqHGST2VdWP9Tp=3HRKKTkq3YoO1zRUtEuySvw9Tw@mail.gmail.com>