R語言中devtools的使用詳解
今天安裝r語言devtools包,嘗試很多種方法也不能決解,下面這個(gè)問題是改變鏡像,然后就會(huì)可以安裝了(3.4.2版本)
Warning in install.packages : InternetOpenUrl failed: '無法解析服務(wù)器的名稱或地址' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : unable to access index for repository https://mirrors.eliteu.cn/CRAN/src/contrib: cannot open URL 'https://mirrors.eliteu.cn/CRAN/src/contrib/PACKAGES' Warning in install.packages : cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : unable to access index for repository https://mirrors.eliteu.cn/CRAN/src/contrib: cannot open URL 'https://mirrors.eliteu.cn/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: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : InternetOpenUrl failed: '不能連接到吊銷服務(wù)器,或者未能獲得最終響應(yīng)。' Warning in install.packages : unable to access index for repository https://mirrors.eliteu.cn/CRAN/bin/windows/contrib/3.4: cannot open URL 'https://mirrors.eliteu.cn/CRAN/bin/windows/contrib/3.4/PACKAGES' Warning in install.packages : cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'
補(bǔ)充:R語言:解決 devtools::install_github 的 SSL/TLS connection failed 問題
問題描述:
解決方法:
1. 打開Git Bash 窗口
2.輸入以下代碼:
git config --global http.sslBackend "opensel"
這里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
結(jié)果如下:
重新運(yùn)行R
成功從git中下載R的包,運(yùn)行成功
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教。
相關(guān)文章
R語言求一行(列表、list)數(shù)據(jù)的平均數(shù)操作
這篇文章主要介紹了R語言求一行(列表、list)數(shù)據(jù)的平均數(shù)操作,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧2021-03-03R語言讀取txt文件中的內(nèi)容實(shí)現(xiàn)
R語言提供了多種讀取文本數(shù)據(jù)的函數(shù),本文主要介紹了R語言讀取txt文件中的內(nèi)容實(shí)現(xiàn),具有一定的參考價(jià)值,感興趣的可以了解一下2024-03-03R語言數(shù)據(jù)可視化ggplot添加左右y軸繪制天貓雙十一銷售圖
本篇文章主要介紹如何在R中,使用ggplot2包在一個(gè)圖像上添加左右兩個(gè) y 軸刻度,并在同一個(gè)圖像上繪制兩個(gè)完全不一樣的統(tǒng)計(jì)圖,有需要的朋友可以借鑒參考下2021-11-11R語言數(shù)據(jù)讀取以及數(shù)據(jù)保存方式
這篇文章主要介紹了R語言數(shù)據(jù)讀取以及數(shù)據(jù)保存方式,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧2021-04-04