Solution. How to Install_Github When There Is a Proxy

r install_github( timelyportfolio/sunburstR ) proxy and manual install

Since you have devtools installed already, try installing from source using devtools::install.

Try this:

library(devtools)
install("~/Packages/sunburstR-master.zip")

And see if the install works. Otherwise, you can unzip the package to get the source files and try again

library(devtools)
install("<Path_to_sunburstR>")

Also, since you are working on Windows, make sure you have Rtools installed.

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.



Related Topics



Leave a reply



Submit