问题:本来想在Rstudio中用devtools::install_github("microly/alimap")安装下载中国地图数据,结果在安装包的时候碰到了诸多问题,这里就常见问题的解决方法说明如下:

安装devtools包,install.packages("devtools")提示

Rstudio中包的安装

 

可能是找不到这个包,这里在Rstudio中——tools——global option——更改包的下载位置为国内清华源,问题解决。

Rstudio中包的安装

 

 然后继续进行安装,又发现Rtools工具没有安装。

Rstudio中包的安装

 

 这里需要到https://cran.r-project.org/bin/windows/Rtools/Rtools35.exe官网上下载,安装,并配置环境。

Rtools不能通过常规install.packages()命令进行安装,需要通过installr包进行安装,这里选择installr工具帮助下载软件’

  1. install.packages("installr")
  2. install.packages("stringr") ###依赖包 
  3. library(stringr)
  4. 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/")

    ·Rstudio中包的安装

     

     

 

相关文章:

  • 2021-12-08
  • 2021-05-13
  • 2021-11-29
  • 2021-05-20
  • 2021-10-28
  • 2021-11-29
猜你喜欢
  • 2021-10-24
  • 2021-11-29
  • 2022-12-23
  • 2021-10-12
  • 2021-06-30
  • 2021-11-23
  • 2021-12-30
相关资源
相似解决方案