我无法在R中的OSX上安装topicmodels包

时间:2014-06-16 04:52:12

标签: r packages

我在尝试安装topicmodels包时遇到了很多麻烦。我尝试了一切。执行以下操作时:

install.packages("/path/to/the/package/topicmodels.tar.gz",type="source")

但最终获得以下内容:

Installing package into ‘/Users/Library/R/3.1/library’
(as ‘lib’ is unspecified)
inferring 'repos = NULL' from the file name
Warning in untar2(tarfile, files, list, exdir, restore_times) :
  using pax extended headers
ERROR: cannot extract package from ‘/Users/Desktop/Rfolder/topicmodels.tar.gz’
Warning in install.packages :
  installation of package ‘/Users/Desktop/Rfolder/topicmodels.tar.gz’ had non-zero exit status
谁有任何想法?当我尝试使用install.packages("topicmodels")安装此软件包时,我得到:

package topicmodels is available as a source package but not as a binary
Warning in install.packages :
  package topicmodels is not available (for R version 3.1.0)`

这就是我尝试从源代码安装此软件包的原因。我试图在OSX mavericks上安装它。请帮忙!

1 个答案:

答案 0 :(得分:1)

当我尝试在MacOS Mavericks上安装“topicmodels”软件包时,这对我有用:https://stackoverflow.com/a/24245311/3745085