Error in library(ggplot2) : There is no package called ‘ggplot2’

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?

Leave a Comment