R语言()报错
安装“heatmap”包
环境:Rstudio
> install.packages("heatmap")
Installing package into ‘C:/Users/luokai/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘heatmap’ is not available (for R version 4.0.2)
输入命令后显示not available?
之前安装其它R包的时候未出现这种情况。
// 更新软件
install.packages("installr")
library(installr)
updateR()
弹出窗口:no need to update。
尝试安装其它包
install.packages("pheatmap")
其它包可以安装。
查阅资料得知,heatmap是R包自带函数,可通过example(heatmap) 查看函数类型,绘制热图需要安装的包为Complexheatmap 和 pheatmap包,除了heatmap函数外,还有gplots 包的heatmap.2函数。