软件包“ Rstem”不可用(对于R版本3.5.1)

时间:2019-07-08 20:51:40

标签: r rstudio data-science text-mining sentiment-analysis

我正在尝试安装Rstem package,但是我收到一条消息,提示R 3.5.1的版本没有可用的版本。我正在使用macOs El Captain

错误是:

> install.packages('Rstem', repos = 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz')
Installing package into ‘/Users/ls_rafael/Library/R/3.5/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/src/contrib:
  cannot open URL 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘Rstem’ is not available (for R version 3.5.1)
Warning in install.packages :
  unable to access index for repository https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/bin/macosx/el-capitan/contrib/3.5:
  cannot open URL 'https://cran.r-project.org/src/contrib/Archive/Rstem/Rstem_0.4-1.tar.gz/bin/macosx/el-capitan/contrib/3.5/PACKAGES'

我已经尝试了此链接issues in installing Rstem package中的建议选项,并且还从官方网站Rstem Package本地下载了该软件包,但是结果也不尽人意。

我正在研究如何对sentiment analysis数据进行Twitter。我想知道是否有此软件包的替代品,或者是否有任何trick来安装它。

2 个答案:

答案 0 :(得分:1)

RStem软件包已从CRAN存储库中删除。您可以使用以下命令下载:-

install.packages('Rstem', repos = "http://www.omegahat.net/R")

确保在计算机上安装了RTools。您可以从此链接下载-

Building R for Windows

答案 1 :(得分:0)

RStem现在由OmegaHat提供。 请尝试以下命令:

install.packages("Rstem", repos = "http://www.omegahat.net/R", type = "source")