Hi I'm not able to install ggplot2 in R, please help

install.packages("ggplot2")
Warning in install.packages("ggplot2") :
'lib = "C:/Program Files/R/R-3.5.2/library"' is not writable
Error in install.packages("ggplot2") : unable to install packages

Check in this web site, there are more solutions

Are you on a work computer or something where you can't write on the C drive? Even then it seems strange.

If you want to install into the system level package library, you have to run Rstudio as "administrator", otherwise, you have to install into your user level package library.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.