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()##查看包是否安装成功

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值