即使依赖项设置为TRUE,也无法在R-Studio中安装tm软件包

时间:2017-10-06 03:21:36

标签: r

我以前在这里看过答案,但是当我尝试它们时,所有这些都失败了。我想从R安装tm包。我试过:

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

但输出始终为:

Warning messages:
1: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘Rpoppler’ had non-zero exit status
2: In install.packages("tm", dependencies = TRUE) :
  installation of package ‘tm’ had non-zero exit status

任何提示?

2 个答案:

答案 0 :(得分:2)

你在UNIX上安装吗?

您可以尝试从以下位置下载该软件包:(我试过,我设法下载它)

https://cran.r-project.org/web/packages/Rpoppler/index.html

然后尝试离线安装tar.gz文件? (即Tools -> Install Packages

答案 1 :(得分:1)

这是Rpoppler包的问题。这是我尝试安装时遇到的错误:

> install.packages("Rpoppler")
Installing package into ‘C:/Users/alebel/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘Rpoppler’ is not available (for R version 3.4.1)

很抱歉,如果那不是您希望的答案。