[R] Hiding a function

Gabor Csardi csardi at rmki.kfki.hu
Sat Feb 23 12:10:14 CET 2008


It depends what you mean by 'hiding', you can start the function 
names with a dot and then they are not listed by ls(), so this
is kind of hiding.

> .a <- function() TRUE
> ls()
character(0)
> .a
function() TRUE

Personally i would not do this though.

G.

On Sat, Feb 23, 2008 at 11:58:57AM +0100, Christophe Genolini wrote:
[...]
> If I understand, it is possible only in a package, not in a programme 
> (unless the "other ways"), is that it ?
> Ok, thanks.
> 
[...]

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    UNIL DGM



More information about the R-help mailing list