Is there a function that I can use to find the location of a package within the filesystem? Something like:
some_function("dplyr") #> /Library/Frameworks/R.framework/Versions/3.4/Resources/library/dplyr
I've taken a look at
.libPaths() and various bits and pieces used in package loading (like
getNamespace), but I've come a little stuck.
Does anyone have any sage advise, helpful pointers, or useful blog posts lying around?