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
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.
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 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
Vary Colors of Axis Labels in R Based on Another Variable
How to Suppress Automatic Table Name and Number in an .Rmd File Using Xtable or Knitr::Kable
Matching Multiple Columns on Different Data Frames and Getting Other Column as Result
Extract Knots, Basis, Coefficients and Predictions for P-Splines in Adaptive Smooth
Run R Script from .Bat (Batch File)
How to Put the Labels Outside of Piechart
R Markdown: How to Make Text Float Around Figures
R: Split Variable Column into Multiple (Unbalanced) Columns by Comma
Number Formatting Axis Labels in Ggplot2
Check If R Is Running in Rstudio
How to Filter a Table's Row Based on an External Vector
Knitr (R) - How Not to Embed Images in the HTML File
R Error in Unique.Default(X) Unique() Applies Only to Vectors
Adding Legend to Ggplot When Lines Were Added Manually
Replace All Na with False in Selected Columns in R
R: 'Split' Preserving Natural Order of Factors
Conditional Assignment of One Variable to the Value of One of Two Other Variables