R报错:WARNING: Rtools is required to build R packages, but is not currently installed.

安装R包“LDheatmap”:

install.packages("LDheatmap")

出现报错:

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
将程序包安装入‘C:/Users/86150/AppData/Local/R/win-library/4.2’
(因为‘lib’没有被指定)
Warning in install.packages :
  package ‘LDheatmap’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

这是因为没有安装rtool所以才会报错。

解决方法:下载安装对应版本的Rtools

1. 下载对应版本的Rtools

下载地址:添加链接描述

 2. 点击安装Rtools,默认安装即可

最后,利用命令

installed.packages()##查看包是否安装成功

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Unlike other books about R, written from the perspective of statistics, R for Programmers: Mastering the Tools is written from the perspective of programmers, providing a channel for programmers with expertise in other programming languages to quickly understand R. The contents are divided into four sections: The first section consists of the basics of R, which explains the advantages of using R, the installation of different versions of R, and the 12 frequently used packages of R. This will help you understand the tool packages, time series packages, and performance monitoring packages of R quickly. The second section discusses the server of R, which examines the communication between R and other programming languages and the application of R as servers. This will help you integrate R with other programming languages and implement the server application of R. The third section discusses databases and big data, which covers the communication between R and various databases, as well as R’s integration with Hadoop. This will help you integrate R with the underlying level of other databases and implement the processing of big data by R, based on Hadoop. The fourth section comprises the appendices, which introduce the installation of Java, various databases, and Hadoop. Because this is a reference book, there is no special sequence for reading all the chapters. You can choose the chapters in which you have an interest. If you are new to R, and you wish to master R comprehensively, simply follow the chapters in sequence. Table of Contents Chapter 1: Basic R Packages Chapter 2: Basic Packages of Time Series Chapter 3: Performance Monitoring Packages of R Chapter 4: Cross-Platform Communication of R Chapter 5: Server Implementation of R Chapter 6: Database and NoSQL Chapter 7: RHadoop Appendix A: Installation of Java Environment Appendix B: Installation of MySQL Appendix C: Installation of Redis Appendix D: Installation of MongoDB Appendix E: Installation of Cassandra Appendix F: Installation of Hadoop Appendix G: Installation of the Hive Environment Appendix H: Installation of HBase

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值