2015-11-05 175 views
2

我試圖在R 中安裝wordcloud軟件包,但似乎無法安裝,並返回如下錯誤。 有人能告訴我如何解決它或從其他來源下載?wordcloud軟件包安裝錯誤

install.packages("C:/Users/Owner/Desktop/wordcloud_2.5.tar.gz", repos = NULL, type = "source") 
Installing package into ‘C:/Users/Owner/Documents/R/win-library/3.2’ 
(as ‘lib’ is unspecified) 
ERROR: dependency 'slam' is not available for package 'wordcloud' 
* removing 'C:/Users/Owner/Documents/R/win-library/3.2/wordcloud' 
Warning in install.packages : 
    running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Owner\Documents\R\win-library\3.2" "C:/Users/Owner/Desktop/wordcloud_2.5.tar.gz"' had status 1 
Warning in install.packages : 
    installation of package ‘C:/Users/Owner/Desktop/wordcloud_2.5.tar.gz’ had non-zero exit status 
+1

'install.packages( 'SLAM')' – OganM

+0

> install.packages( 'SLAM') 安裝封裝成「C:/用戶/所有者/文件/ R/win-library/3.2' (as'lib'is unspecified) 僅在源代碼中可用且可能需要編譯 的軟件包C/C++/Fortran:'slam' 這些將不會被安裝 –

+0

我仍然從這個錯誤 –

回答

1

要做到這一點基本上你將需要這些步驟,可能是最好的辦法

  1. install.packages(「SLAM」)--while這樣它會要求你選擇國家,你將不得不做,並在幾分鐘內它將完成所有的 。

  2. install.packages(「wordcloud」) - 這也將被安裝和構建。

然後只需輸入

>library(wordcloud) 
    Loading required package: RColorBrewer 
    Warning message: 
    package ‘wordcloud’ was built under R version 3.4.2