Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (50.2k points)

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)

1 Answer

0 votes
by (107k points)

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"

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...