I cant install package ggplot2 in R version 3.4.3



I just tried installing R package ggplot2 and got this error message.

*nstalling package into ‘C:/Users/User/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘gg-plot2’ is not available (for R version 3.4.3)

what could be the problem


That’s a typo. Try install.packages("ggplot2")


oh thank you mishabalyasin, worked a charm


If your question has been answered (and it looks like @mishabalyasin has you covered), please mark the solution. That way, someone in the future can easily see what worked for you.

If you’re the original poster (OP), there should be a little box at the bottom of replies that you can click to select that response as your “solution.”


@mara thank you for the suggestion have marked mishabalyasin response as a solution. still new on the platform… thanks for the headsup