r – Error in library(ggplot2) : There is no package called ggplot2
r – Error in library(ggplot2) : There is no package called ggplot2
Steps
-
Go To Tools
-
Install Packages
-
In Packages Text Box Type
ggplot2
-
Check the checkbox install dependencies
When having this issue I would suggest :
- try turning it off and on again
- update R to last version if possible
- remove manually all the folders related to the relevant package and retry the installation
- change your default library location : How do you change library location in R?
r – Error in library(ggplot2) : There is no package called ggplot2
Try launching R client directly from command prompt, then issue the instruction:
install.packages(ggplot2, lib=C:/Users/YourUser/Documents/R/win-library/3.3)