Skip to content
Prev 43314 / 63424 Next

R package dependency issues when namespace is not attached

On 05/13/2012 12:14 PM, Jeroen Ooms wrote:
I think this is because name spaces are relatively new, so authors are 
yet to realize the consequences of not importing the definitions their 
package uses.

As a package developer, I want to have the code my package sees be 
exactly what is needed, and no more. There are many good reasons for 
this, including isolating as much as possible my code from changes in 
other packages and minimizing the costs of symbol look-up. These issues 
become increasing important as the hierarchy of package relationships 
becomes deep.

The best practice is for authors to import all necessary symbols, but no 
more!

Martin