Gabor Csardi a écrit :
> It depends what you mean by 'hiding',
Well, the main idea was the to limit the existance of a function.
a( ) need b( ) but no other function will need b(). So I would have like 
to let b( ) exists localy only when a( ) is called, not elsewhere.

Christophe
>  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.
>>
>>     
> [...]
>
>   


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to