Re: [Rd] Functions with the same name: best practices

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri 26 Aug 2005 - 15:45:57 GMT

On Fri, 26 Aug 2005, hadley wickham wrote:

> Thanks to all of you for your advice. I will read up on namespaces and
> start using them to "protect" my internal function from name clashes
> with other packages, and endeavour to my public functions unique
> names.
>
> I know other languages (eg. python) separate loading a package and
> including it in the default namespace, do you think R will ever move
> to such a system?

I don't follow the terminology here, but in R you can load a namespace without making the exports visible, which sounds like what you are asking. In R `loading a package' means making its objects visible from the top-level scope.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat Aug 27 01:53:37 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:44 GMT