安裝R包“LDheatmap”:
install.packages("LDheatmap")
出現(xiàn)報錯:
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
下載地址:添加鏈接描述
文章來源:http://www.zghlxwxcb.cn/news/detail-679040.html
?2. 點擊安裝Rtools,默認安裝即可
最后,利用命令文章來源地址http://www.zghlxwxcb.cn/news/detail-679040.html
installed.packages()##查看包是否安裝成功
到了這里,關于R報錯:WARNING: Rtools is required to build R packages, but is not currently installed.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!