[Rd] Functions with the same name: best practices

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Aug 26 17:45:57 CEST 2005


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 at 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



More information about the R-devel mailing list