devtools::install_github error: SEC_E_UNTRUSTED_ROOT - The certification chain was issued by an entity that is unreliable
I have found the solution:
The internet connection does only work within curl
if you set the correct HTTPS_PROXY:
# insert your correct domain name and IP port hereSys.setenv(https_proxy = "http://httpproxy.mycompany.com:1234")
This devtools
issue comment did help me:https://github.com/r-lib/devtools/issues/1610#issuecomment-333344548
Update 1:
This is a generic solution to set the HTTP(S)_PROXY in R:
requires(curl)requires(devtools)proxy <- curl::ie_get_proxy_for_url("https://www.qwant.com/")Sys.setenv(https_proxy=proxy)# Sys.setenv(http_proxy=proxy) # you could also set an HTTP proxydevtools::install_github("aryoda/tryCatchLog") # should work now
You could add this line to your Rprofile.site
file (in R/etc
folder)