Rtools和R版本冲突的问题

最近在使用devtools从github上下载R包时出现了版本冲突的问题,下面是一个小的解决方法

devtools::install_github("bmansfeld/QTLseqr")
Downloading GitHub repo bmansfeld/QTLseqr@master
from URL https://api.github.com/repos/bmansfeld/QTLseqr/zipball/master
WARNING: Rtools 3.5 found on the path at F:/Rtools is not compatible with R 3.5.1.

Please download and install the appropriate version of Rtools from http://cran.r-project.org/bin/windows/Rtools/, remove the incompatible version from your PATH.
Installation failed: Could not find build tools necessary to build QTLseqr
# Set path of Rtools, and *InstallDirectory* must substitute to you Rtools's directory
Sys.setenv(PATH = paste(Sys.getenv("PATH"), "*InstallDirectory*/Rtools/bin/", "*InstallDirectory*/Rtools/mingw_64/bin", sep = ";")) 

#for 64 bit version, and *InstallDirectory* must substitute to you Rtools's directory
Sys.setenv(BINPREF = "*InstallDirectory*/Rtools/mingw_64/bin") 
library(devtools) 

#Manually "force" version to be accepted 
assignInNamespace("version_info", c(devtools:::version_info, list("3.5" = list(version_min = "3.3.0", version_max = "99.99.99", path = "bin"))), "devtools") 
find_rtools() 

# is TRUE now 
# Now you can install transformr then gganimate devtools::ins…
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 176,319评论 25 709
  • 用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你...
    hw1212阅读 14,515评论 2 59
  • 1、通过CocoaPods安装项目名称项目信息 AFNetworking网络请求组件 FMDB本地数据库组件 SD...
    阳明AI阅读 16,056评论 3 119
  • 一、产品介绍 定位为个性化的旅行社区。提供大量的游记分享、景点攻略、旅游线路指南以及旅游专题推荐;为外出旅行的用户...
    大鸽子Z阅读 12,930评论 0 38
  • 越长大,最初的梦想离自己越远。 不知该从何说起,心里觉得很迷茫,不知道自己怎么做才能有一点目标和方向,我是个傻女孩...
    梦雨之痕阅读 2,405评论 0 0

友情链接更多精彩内容