Devtools::Install_Github() - Ignore Ssl Cert Verification Failure

devtools::install_github() - Ignore SSL cert verification failure

One way to handle the problem is to set the CURLOPT_SSL_VERIFYPEER to false. This option determines whether curl verifies the authenticity of the peer's certificate. A value of 1 means curl verifies; 0 (zero) means it doesn't.
http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html

The relevant option needs to be passed to RCurl. In RCurl the CURLOPT_ is removed letters arre lowercase and the underscore is changed to ..

set_config( config( ssl.verifypeer = 0L ) )

will pass the relevant option to RCurl when using httr.

UPDATE:

The httr since this answer was written has moved from RCurl as an underlying dependence to the curl package. cURL options are now specified
with underscores so the above would be:

set_config( config( ssl_verifypeer = 0L ) )

in the current version of httr.

R - install_github fails

Does this work? I had to change this bit of code recently from ssl.verifypeer to ssl_verifypeer

library(httr)
set_config(config(ssl_verifypeer = 0L))

see here devtools::install_github() - Ignore SSL cert verification failure

error setting certificate verify locations, install_github

This SO answer (R - devtools Github install fails) to a similar question suggests trying to reinstall RCurl - which (I'm guessing here) may fix the path to curl on your machine, in any case, try that.

devtools install_github fails

The issue has been fixed like this which also worked for me according to: https://github.com/r-lib/devtools/issues/1978

  • Run devtools::install_github("r-lib/remotes")
  • Restart R.
  • Run devtools::install_github("...") for the intended package.

devtools::install_github Error in function (type, msg, asError = TRUE) : not set

Actually, I had the same issue and after installing RCurl it worked.

In order to install RCurl in ubuntu, write the following in your terminal:

sudo apt-get install libcurl4-openssl-dev

Then in R:

install.packages('RCurl')

And that's it!



Related Topics



Leave a reply



Submit