When I have multiple packages containing a function, how do I confirm which package's version of a function is invoked if I call it (without explicitly naming the package)? I've looked at How to know to which package a particular function belongs to in R prior to package loading?
and narrowed down (my particular problem was "arima") the suspects using
help.search('arima', fields=c('name'), ignore.case=FALSE, agrep=FALSE)
In my case this returns "stats" and "TSA" as the only possible culprits, but this still doesn't tell me which is active. The system obviously knows, or we would have to be explicit whenever we call functions. But how do we obtain this information?