[Rd] legitimate use of :::

Gray gray at clhn.co
Fri Aug 23 02:41:58 CEST 2013


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

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)



More information about the R-devel mailing list