R语⾔中devtools的使⽤详解
今天安装r语⾔devtools包,尝试很多种⽅法也不能决解,下⾯这个问题是改变镜像,然后就会可以安装了(3.4.2版本)Warning in install.packages :
InternetOpenUrl failed: '⽆法解析服务器的名称或地址'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
unable to access index for repository mirrors.eliteu/CRAN/src/contrib:
cannot open URL 'mirrors.eliteu/CRAN/src/contrib/PACKAGES'
Warning in install.packages :
cannot open URL 'ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
unable to access index for repository mirrors.eliteu/CRAN/src/contrib:
cannot open URL 'mirrors.eliteu/CRAN/src/contrib/PACKAGES'
Warning in install.packages :
package ‘devtools' is not available (for R version 3.4.2)
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
InternetOpenUrl failed: '不能连接到吊销服务器,或者未能获得最终响应。'
Warning in install.packages :
unable to access index for repository mirrors.eliteu/CRAN/bin/windows/contrib/3.4:
cannot open URL 'mirrors.eliteu/CRAN/bin/windows/contrib/3.4/PACKAGES'
Warning in install.packages :
cannot open URL 'ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'
补充:R语⾔:解决 devtools::install_github 的 SSL/TLS connection failed 问题
问题描述:
解决⽅法:
1. 打开Git Bash 窗⼝
2.输⼊以下代码:
git config --global http.sslBackend "opensel"git使用详解
这⾥D:/R/R-4.0.2/library/openssl/cacert.pem是R语⾔安装位置中的cacert.pem 路径git config --global http.sslCAInfo D:/R/R-4.0.2/library/openssl/cacert.pem
结果如下:
重新运⾏R
成功从git中下载R的包,运⾏成功
以上为个⼈经验,希望能给⼤家⼀个参考,也希望⼤家多多⽀持。如有错误或未考虑完全的地⽅,望不吝赐教。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论