Skip to content
Prev 45252 / 63424 Next

conflict between rJava and data.table

On Mar 1, 2013, at 11:40 AM, Matthew Dowle wrote:

            
Matt,

there are two entirely separate uses 

a) interactive use
b) use in packages

you are describing a) and as I said in the latter part above J() in rJava is meant for that so it would be useful to not have a conflict there.

However, in my first part of the e-mail I was referring to b) where there is no conflict, because packages define which package will a symbol come from, so the user search path plays no role. Today, all packages should be using imports so search path pollution should no longer be an issue, so the order in which the user attached packages to their search path won't affect the functionality of the packages (that's why namespaces are mandatory). Therefore, if XLConnect breaks (again, I don't know, I didn't see it) due to the order on the search path, it indicates there is a bug in the its namespace as it's apparently importing the wrong J - it should be importing it from rJava and not data.table. Is that more clear?

Cheers,
Simon