setInternet2(TRUE) no longer works to resolve issue with 'Error in file(con, "r") : ...'
Opened this issue · 1 comments
Hi there,
I really like your package and often use it to update my local R installation on Windows. It worked fine for years, but I've recently encountered the error below, for which you suggest to use setInternet2(TRUE)
. As setInternet2()
is now defunct, I am kindly asking for a new bug fix for the issue and, if possible, for you to update the documentation.
Thank you very much in advance!
installr::check.for.updates.R()
Error in file(con, "r") :
cannot open the connection to 'https://cran.rstudio.com/bin/windows/base/'
In addition: Warning message:
In file(con, "r") :
URL 'https://cran.rstudio.com/bin/windows/base/': status was 'SSL connect error'
> setInternet2(TRUE)
Error: 'setInternet2' is defunct.
See help("Defunct")
Hi alex-lauer,
I am having a similar issue but the error I receive is:
> installr::updateR() Error in file(con, "r") : cannot open the connection to 'https://cran.rstudio.com/bin/windows/base/' In addition: Warning message: In file(con, "r") : URL 'https://cran.rstudio.com/bin/windows/base/': status was 'SSL peer certificate or SSH remote key was not OK'
I haven't resolved the problem but after reviewing the documentation, I think they are referring to setting the 'setInternet2' to 'TRUE' within the function arguments.
For example: installr::updateR(setInternet2 = TRUE)
This still produces the same error for me.
I don't see that listed as an argument for the check.for.updates.R() function. So, I'm not sure if setInternet2 = TRUE
can help?
For the developers:
I found a way to turn off the SSL cert check in other packages but is there a way to do this when using installr
?