无法安装RandomForest软件包

发布于 2025-02-10 23:01:26 字数 357 浏览 2 评论 0原文

我正在尝试将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牵你的手,一向走下去 2025-02-17 23:01:26

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文