error setting certificate verify locations, install_github

倾然丶 夕夏残阳落幕 提交于 2019-12-01 04:00:41
sckott

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.

Fan Yang

The problem is due to a change in the R package curl.

You can work around the issue as follows:

1). Open a new MRO session and remove the packages curl and httr:

remove.packages(c("curl","httr"))

2). Restart MRO and install the packages again, this time using install.packages() function:

install.packages(c("curl", "httr"))

3). Set the environment variable CURL_CA_BUNDLE:

Sys.setenv(CURL_CA_BUNDLE="/utils/microsoft-r-open-3.4.3/lib64/R/lib/microsoft-r-cacert.pem")

4). Try installing a package using install_github() from github(this should now work):

For example:

install_github("ropensci/tokenizer")

Reference:

rvest read_html function does not work

In my case my CAfile existed but was 0 bytes. I fixed this by running

update-ca-trust

which created the proper file.

I got this error while pushing changes to github
git config --global http.sslverify "false" will solve the problem

here is original discussion going on
https://github.com/npm/npm/issues/1484

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!