hello guys
i have faced this error for installing ggplot2 in rstudio 4.4
install.packages("ggplot2")
Installing package into ‘C:/Users/Aarmaani/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/ggplot2_3.5.1.zip '
Warning in install.packages :
URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/ggplot2_3.5.1.zip ': status was 'SSL connect error'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/ggplot2_3.5.1.zip '
Warning in install.packages :
download of package ‘ggplot2’ failed
library(ggplot2)
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’
samirasadri:
R6
I am not a Windows user but it looks like you should install {R6} and try again
install.packages("R6")
install.packages("ggplot2")
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 cran.rstudio.com . 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
system
Closed
May 31, 2024, 9:39pm
6
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.