Back
I just want to know how to find the location of the loaded library in R?
For example, I load the ggplots:
library(ggplot2)
I want the installation folder of the loaded ggplots.
folder = some_function(ggplot2)
In R programming you can easily find your location of the installed package with the help of find.package().
find.package("ggplot2")[1] "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ggplot2"
find.package("ggplot2")
[1] "/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ggplot2"
31k questions
32.8k answers
501 comments
693 users