installing ggplot2 in R.4.4

hello guys
i have faced this error for installing ggplot2 in rstudio 4.4

Installing package into ‘C:/Users/Aarmaani/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
trying URL ''
Warning in install.packages :
URL '': status was 'SSL connect error'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL ''
Warning in install.packages :
download of package ‘ggplot2’ failed
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘R6’

I am not a Windows user but it looks like you should install {R6} and try again


I think this is the actual error you have to solve - it seems that your local windows server is having issues with SSL connection to This can be triggered by general windows setup issues, firewalls, transparent proxies etc...

Do package installations work with other R versions on the same server ?

1 Like

thank you very much i tried for installing R6
but still has error

thank you very much. yes i have installed ggplot 2 in other version of R in this server

This topic was automatically closed 7 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.