問題:本來想在Rstudio中用devtools::install_github("microly/alimap")安裝下載中國地圖數據,結果在安裝包的時候碰到了諸多問題,這里就常見問題的解決方法說明如下:
安裝devtools包,install.packages("devtools")提示

可能是找不到這個包,這里在Rstudio中——tools——global option——更改包的下載位置為國內清華源,問題解決。

然后繼續進行安裝,又發現Rtools工具沒有安裝。

這里需要到https://cran.r-project.org/bin/windows/Rtools/Rtools35.exe官網上下載,安裝,並配置環境。
Rtools不能通過常規install.packages()命令進行安裝,需要通過installr包進行安裝,這里選擇installr工具幫助下載軟件’
-
install.packages( "installr")
-
install.packages( "stringr") ###依賴包
-
library(stringr)
-
library(installr)注:其他的GUI (Such As: R, 'Rtools', 'RStudio', 'Git', and More!)都能通過installr進行安裝
安裝Rtools
輸入install.Rtools(page_with_download_url = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/Rtools/")
·

