我试图安装“情绪”包,这需要“Rstem”包。但由于以下错误消息
,安装过程失败install.packages("Rstem")
Installing package(s) into ‘/home/user/R/x86_64-redhat-linux-gnu-library/2.14’
(as ‘lib’ is unspecified)
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘Rstem’ is not available (for R version 2.14.1)
我可以知道如何解决这个问题吗?
答案 0 :(得分:8)
首先尝试通过此命令安装Rstem:
install.packages("Rstem", repos = "http://www.omegahat.org/R")
然后尝试安装情绪。
适用于ubuntu 12.04
答案 1 :(得分:5)
从此链接下载RStem源文件: https://cran.r-project.org/src/contrib/Archive/Rstem/
然后将包从下载的源文件安装到R:
install.packages("Rstem_0.4-1.tar.gz" , repos=NULL, type="source")
答案 2 :(得分:1)