[R] create namespace without creating a package?

Duncan Murdoch murdoch.duncan at gmail.com
Sun May 1 13:38:21 CEST 2011


On 30/04/11 10:26 AM, xiagao1982 wrote:
> Hi all,
>
> I am a C++/C# programmer who is new to R. I would like to use something like "namespace" to organize my functions without creating a package. How can I do this? Thanks!

You could do it with the local() function or other explicit use of 
environments, but it's a bad idea.  Use a package:  that's the R way to 
do it.

Duncan Murdoch



More information about the R-help mailing list