简体   繁体   English

在 R 中安装插入符号包

[英]Installing the caret package in R

How long does it generally take to install caret package in R?在 R 中安装 caret 包通常需要多长时间? I ran install.packages('caret', dependencies = TRUE), and R has been running the install for close to an hour now.我运行了 install.packages('caret', dependencies = TRUE),R 已经运行了将近一个小时的安装。 Is this normal?这是正常的吗?

It shouldn't take that long, I actually had to install the Caret package on one of my machines earlier today and it took less than a minute.应该不会花那么长时间,实际上我今天早些时候必须在我的一台机器上安装 Caret 包,而且只花了不到一分钟的时间。 Sounds like you might want to check your connection speed.听起来您可能想检查您的连接速度。

With dependencies, it can take a while, mine took about 30mins and my download speed was around 18Mbps max, it had 648 dependencies as of Nov19.对于依赖项,可能需要一段时间,我的大约需要 30 分钟,我的下载速度最大约为 18Mbp​​s,截至 11 月 19 日它有 648 个依赖项。 With-out dependencies, it is fast, as the answer from the_SJC suggests.没有依赖关系,它很快,正如 the_SJC 的答案所暗示的那样。

Using:使用:

install.packages("caret", dependencies = c("Depends", "Suggests"))

the install took about 5 hours for me with 100Mbps internet.使用 100Mbps 互联网安装对我来说大约需要 5 个小时。


Adding to that, it still didn't install what I needed.除此之外,它仍然没有安装我需要的东西。 This worked:这有效:

install.packages("caret", dependencies = TRUE)

it took about 10 minutes.花了大约 10 分钟。

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

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