简体   繁体   English

R:如何安装此软件包?

[英]R: how to install this package?

I am trying to install the fpc package. 我正在尝试安装fpc软件包。 According to 根据

http://en.wikibooks.org/wiki/Data_Mining_Algorithms_In_R/Clustering/Density-Based_Clustering http://en.wikibooks.org/wiki/Data_Mining_Algorithms_In_R/Clustering/Density-Based_Clustering

it's easy: just type install.packages("fpc", dependencies = TRUE) 这很容易:只需键入install.packages(“ fpc”,dependencies = TRUE)

I did that. 我做到了 But after 10-15 minutes of downloading whatever and thousands of lines flushing down my screen, RStudio did not react anymore. 但是在下载了10-15分钟的内容以及成千上万的行冲洗掉我的屏幕后,RStudio不再反应了。

Now I'm trying to install without dependencies = TRUE and get this error: 现在,我尝试在没有依赖项= TRUE的情况下进行安装,并出现以下错误:

ERROR: dependencies 'mclust', 'flexmix' are not available for package 'fpc' 错误:依赖项“ mclust”,“ flexmix”不适用于软件包“ fpc”

Then I tried to do install.packages("mclust") 然后我尝试做install.packages(“ mclust”)

but I get this: 但我明白了:

package 'mclust' is not available (for R version 2.14.1) 软件包“ mclust”不可用(对于R版本2.14.1)

Why can I not just install that package fpc? 为什么我不能只安装该软件包fpc? It seems to be quite prominent, so why is it so complicated to install it? 它似乎很显眼,那么为什么安装起来这么复杂?

Upgrade R to ver 3.x and You can install fpc from menubar on Rstudio 将R升级到3.x版,您可以从Rstudio的菜单栏中安装fpc

Choose Tools >> Install Package >> then type "fpc" 选择Tools >> Install Package >>然后输入“ fpc”

It will then download automatically. 然后它将自动下载。

I'm using Rstudio ver 0.98.1002 and R ver 3.1.2 我正在使用Rstudio版本0.98.1002和R版本3.1.2

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

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