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
Lapply to Add Columns to Each Dataframe in a List
Double Clustered Standard Errors for Panel Data
Expression and New Line in Plot Labels
How to Connect to a Remote Server with Ssh in R
Show Content for Menuitem When Menusubitems Exist in Shiny Dashboard
Obtaining Connected Components of Neighboring Values
Handling Errors Before Warnings in Trycatch
In R Combine a List of Lists into One List
Apply a Function to Several Columns at Once with Mutate
How to Change Stacking Order in Stacked Bar Chart in R
Automate Zip File Reading in R
Different Colour Palettes for Two Different Colour Aesthetic Mappings in Ggplot2
Remove Lines from Color and Fill Legends
R Optimization with Equality and Inequality Constraints
How to Calculate Mean of All Columns, by Group
Ggplot2 - Using Two Different Color Scales for Overlayed Plots
Add Raster to Ggmap Base Map: Set Alpha (Transparency) and Fill Color to Inset_Raster() in Ggplot2