我尝试在R中安装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
答案 0 :(得分:1)
要做到这一点,基本上你需要这些步骤,可能是最好的方法
install.packages(" slam") - 执行此操作时,它会要求您选择一个您需要做的国家,并在几分钟内完成 一切都会完成。
- 醇>
install.packages(" wordcloud") - 这也将被安装和构建。
然后输入
print (data)
customer_key new
0 825486 15073574836092810
1 457347 15073574836092810
2 641996 15073574836092810
3 1006860 15073574836092810
4 1078894 15073574836092810