简体   繁体   English

Rtools与R版本3.5.1不兼容吗?

[英]Is Rtools incompatible with R version 3.5.1?

I have tried install.packages("Rtools") , but this provides an error that states 我已经尝试过install.packages("Rtools") ,但这提供了一个错误

package 'Rtools' is not available (for R version 3.5.1) 套餐'Rtools'不可用(R版3.5.1)

Given that the latest version of R is just a week old, should I wait for the R developers to catch up, or is this a bug I should report? 鉴于最新版本的R只有一周的时间,我应该等待R开发人员赶上,还是这是我应该报告的错误?

No, I think it's related to devtools . 不,我认为这与devtools有关。 You can check that devtools:::version_info is lacking 3.5 . 您可以检查devtools:::version_info是否缺少3.5 You could use this as a workaround: 您可以将其用作解决方法:

library(devtools)
assignInNamespace("version_info", c(devtools:::version_info, list("3.5" = list(version_min = "3.3.0", version_max = "99.99.99", path = "bin"))), "devtools")

Now your install commands for any package that needs compilation will work again, assuming you have version 3.5 of it installed from https://cran.r-project.org/bin/windows/Rtools/ . 现在,对于需要编译的任何软件包的安装命令将再次起作用,假设您从https://cran.r-project.org/bin/windows/Rtools/安装了3.5版本。

See here for reference: https://github.com/r-lib/devtools/issues/1772 请参阅此处以供参考: https//github.com/r-lib/devtools/issues/1772

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM