安装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
下载地址:添加链接描述
文章来源:https://www.toymoban.com/news/detail-679040.html
2. 点击安装Rtools,默认安装即可
最后,利用命令文章来源地址https://www.toymoban.com/news/detail-679040.html
installed.packages()##查看包是否安装成功
到了这里,关于R报错:WARNING: Rtools is required to build R packages, but is not currently installed.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!