无法安装RandomForest软件包
我正在尝试将RandomForest软件包安装在Rstudio中,并且无法成功地进行。
我尝试了以下代码,并在下面获取了错误消息。我还尝试在“工具”下使用“安装软件包”功能,但在Cran中找不到Randomforest软件包。我只能看到“ RandomForestexPlainer”的软件包“ RandomForestsgls”和“ Rancomforestsrc”
install.packages(“ Random Forest”)
install.packages中的警告:packages:packages: 软件包“ RandomForest”不可用(对于R版本3.6.1),
如果有人可以建议出了问题,我将不胜感激。先感谢您。
I am trying to install the randomForest package in RStudio and have not been able to do so successfully.
I tried the following code and got the error message further down below. I also tried to use the "Install Packages" function under "Tools" and could not find the randomForest package in CRAN. I can only see packages of "randomForestExplainer" "RandomForestsGLS" and "randomForestSRC"
install.packages("randomForest")
Warning in install.packages :
package ‘randomForest’ is not available (for R version 3.6.1)
I would appreciate it if someone could kindly advise what went wrong. Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RandomForest
的当前版本需要R版本4.1.0或更新。您正在使用三年历史的R 3.6.1。The best thing for you to do is to update to the current R release, but if that is impossible for some reason, then you'll need to try to find an older version of
randomForest
and install that. This is likely to waste a lot of time, because it may depend on other old packages, etc. You can see what's available on this page: https://cran.r-project.org/src/contrib/Archive/randomForest/, but you'll have下载以查找哪些版本的R兼容。The current release of
randomForest
requires R version 4.1.0 or newer. You are using R 3.6.1, which is three years old.The best thing for you to do is to update to the current R release, but if that is impossible for some reason, then you'll need to try to find an older version of
randomForest
and install that. This is likely to waste a lot of time, because it may depend on other old packages, etc. You can see what's available on this page: https://cran.r-project.org/src/contrib/Archive/randomForest/, but you'll have to download to find which versions of R are compatible.