Please help, I am a beginner just learning data science from the scratch, I just started learning the rudiments of Rstudio and I tried to install the package "ggplot2" using install.packages('ggplot2') but I keep getting this error message:
Warning in install.packages :
package ‘install.packages('ggplot2')’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
I used install.packages("ggplot2") I only used the library command to see if I had it installed already but I'm just so confused.
What I did now is I navigated to the package Icon in the lower right quadrant, scrolled down till I found ggplot2 then I ticked the box just by the left of (ggplot2) package. I'm not sure if it worked but there were a lot of red lines downloading some stuff line after line all in kilobytes.
If ggplot2 appears in the Packages pane, then it is installed. Selecting it there should not result in the stream of red output that you describe but let's ignore that for the moment. Try running the two commands
library(ggplot2)
search()
Here is the output I get from that in a new RStudio session
You can see package:ggplot2 in the list, showing that ggplot2 is loaded. Your output may look different but you should see ggplot2 listed if you successfully installed it and then ran library(ggplot2).