R語言中devtools的使用詳解
今天安裝r語言devtools包,嘗試很多種方法也不能決解,下面這個問題是改變鏡像,然后就會可以安裝了(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'
補充: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é)果如下:
重新運行R
成功從git中下載R的包,運行成功
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。如有錯誤或未考慮完全的地方,望不吝賜教。
相關(guān)文章
R語言求一行(列表、list)數(shù)據(jù)的平均數(shù)操作
這篇文章主要介紹了R語言求一行(列表、list)數(shù)據(jù)的平均數(shù)操作,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2021-03-03R語言數(shù)據(jù)可視化ggplot添加左右y軸繪制天貓雙十一銷售圖
本篇文章主要介紹如何在R中,使用ggplot2包在一個圖像上添加左右兩個 y 軸刻度,并在同一個圖像上繪制兩個完全不一樣的統(tǒng)計圖,有需要的朋友可以借鑒參考下2021-11-11R語言數(shù)據(jù)讀取以及數(shù)據(jù)保存方式
這篇文章主要介紹了R語言數(shù)據(jù)讀取以及數(shù)據(jù)保存方式,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2021-04-04