Try the function where
from the pryr
package
> library(dplyr)
> pryr::where("select")
attr(,"name")
[1] "package:dplyr"
attr(,"path")
[1] "/home/francois/.R/library/dplyr"
> library(MASS)
> pryr::where("select")
attr(,"name")
[1] "package:MASS"
attr(,"path")
[1] "/home/francois/.R/library/MASS"