错误设置证书验证位置,install_github [英] error setting certificate verify locations, install_github

查看:740
本文介绍了错误设置证书验证位置,install_github的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从github安装一个包,但是当我
使用 install_github 时,我总是收到错误。

 
library(devtools)
install_github(repo =swirl,username =ncarchedi)
安装github repo(s)swirl / master from ncarchedi
从https://github.com/ncarchedi/swirl/archive/master.zip下载swirl.zip
函数错误(type,msg,asError = TRUE):
错误设置证书验证位置:
CAfile:/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RCurl/CurlSSL/cacert.pem
CApath:none

我试图安装几个不同的包
(包括ggmap的更新版本),而且我总是得到相同的错误。它
必须与RCurl有关,但我不明白
是什么问题,或者如何解决它。我有devtools(版本1.3)和RCurl
(版本1.95-4.1)。我在Mac上运行R版本3.0.1(Good Sport)。


$ b

sessionInfo()

 
sessionInfo()
R版本3.0.1(2013-05-16)
平台:x86_64-apple -darwin10.8.0(64位)

区域设置:
[1] en_US.UTF-8 / zh_CN.UTF-8 / zh_CN.UTF-8 / C / zh_CN.UTF- 8 / en_US.UTF-8

附加软件包:
[1]统计图形grDevices utils数据集方法库

其他附加软件包:
[ 1] RCurl_1.95-4.1 bitops_1.0-5 devtools_1.3

通过命名空间加载(并未附加):
[1] digest_0.6.3 evaluate_0.4.3 httr_0.2 memoise_0 .1 parallel_3.0.1 stringr_0.6.2
[7] tools_3.0.1 whisker_0.3-2


解决方案这个答案( R - devtools Github安装失败)到一个类似的问题建议尝试重新安装RCurl - 哪(我猜在这里)可能会修复你的机器上卷曲的路径,无论如何,尝试一下。

I am trying to install a package from github, but I keep getting an error when I use install_github.

library(devtools)
install_github(repo="swirl", username="ncarchedi")
Installing github repo(s) swirl/master from ncarchedi
Downloading swirl.zip from https://github.com/ncarchedi/swirl/archive/master.zip
Error in function (type, msg, asError = TRUE)  : 
  error setting certificate verify locations:
  CAfile: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/RCurl/CurlSSL/cacert.pem
  CApath: none

I have tried to install several different packages (including an updated version of ggmap), and I always get the same error. It must have something to do with RCurl, but I don't understand what the problem is, or how to fix it. I have devtools (Version 1.3) and RCurl (Version 1.95-4.1). I am running R version 3.0.1 ("Good Sport") on mac.

Results from sessionInfo()

sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RCurl_1.95-4.1 bitops_1.0-5   devtools_1.3  

loaded via a namespace (and not attached):
[1] digest_0.6.3   evaluate_0.4.3 httr_0.2       memoise_0.1    parallel_3.0.1  stringr_0.6.2 
[7] tools_3.0.1    whisker_0.3-2

解决方案

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.

这篇关于错误设置证书验证位置,install_github的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆