r – Error in library(ggplot2) : There is no package called ggplot2

r – Error in library(ggplot2) : There is no package called ggplot2

Steps

  1. Go To Tools

  2. Install Packages

  3. In Packages Text Box Type ggplot2

  4. 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)

Leave a Reply

Your email address will not be published.