[Rd] legitimate use of :::

John Fox jfox at mcmaster.ca
Fri Aug 23 03:54:26 CEST 2013


Dear Gray,

On Thu, 22 Aug 2013 19:41:58 -0500
 Gray <gray at clhn.co> wrote:
> Peter Meilstrup: (05:01PM on Thu, Aug 22)
> >One most often encounters namespace conflicts at the user level, when
> >loading two packages that have no logical connection other than both
> >bearing on your problem of the moment.
> 
> Unless I'm mistaken, you can reassign the hidden functions, ie
> 
> fna <- joespackage:::usefulfunction
> 
> fnb <- janespackage:::usefulfunction
> 

This will now generate a note from R CMD check and an objection from the CRAN administrators.

Best,
 John

> which is a little bit of a pain, but makes the user's code
> unambiguous.  This also works with two colons for explicitly exported
> functions.
> 
> -- 
> Gray Calhoun, Assistant Professor of Economics at Iowa State http://gray.clhn.co (web)
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list