R:包装'slam'的编译失败

时间:2016-10-05 21:50:27

标签: r windows-8.1 text-mining tm slam

我正在使用R 2.15.2,我想安装tm包进行一些文本分析。 我已从CRAN archives下载了兼容的 tm 包。我下载了 tm_0.5-9

我尝试使用

安装它
install.packages("/Downloads/tm_0.5-9.tar.gz", repos = NULL, type="source", dependencies = TRUE)

并收到以下错误

Installing package(s) into ‘/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
ERROR: dependency 'slam' is not available for package 'tm'
* removing '/Documents/R/win-library/2.15/tm'
Warning in install.packages :
  running command 'C:/PROGRA~1/R/R-215~1.2/bin/x64/R CMD INSTALL -l "/Documents/R/win-library/2.15"   "/Downloads/tm_0.5-9.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘/Downloads/tm_0.5-9.tar.gz’ had non-zero exit status.

因此,我继续从CRAN archives下载兼容的 slam 包。我下载了 slam_0.1-26

我尝试使用

安装它
install.packages("/Downloads/slam_0.1-26.tar.gz", repos = NULL, type="source")

并收到以下错误

Installing package(s) into ‘/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
* installing *source* package 'slam' ...
** package 'slam' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
**ERROR: compilation failed for package 'slam'**
* removing '/Documents/R/win-library/2.15/slam'
Warning in install.packages :
  running command 'C:/PROGRA~1/R/R-215~1.2/bin/x64/R CMD INSTALL -l "/Documents/R/win-library/2.15"   "/Downloads/slam_0.1-26.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘/Downloads/slam_0.1-26.tar.gz’ had non-zero exit status

我如何安装大满贯并最终安装?

0 个答案:

没有答案