我能';t在R中的OSX上安装topicmodels包

我能';t在R中的OSX上安装topicmodels包,r,packages,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 Warnin

我在尝试安装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("/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上安装这个。请帮忙

当我试图在MacOS Mavericks上安装“topicmodels”软件包时,这对我起到了作用:

你想在OS X Mavericks上安装它吗?是的,你做对了。根据这个链接(),二进制文件还不能用于OS X Mavericks。所以绝对没有办法解决这个问题。正确安装开发工具,然后可以从源代码编译。或者在Mavericks中使用SL版本的R。然后可以从二进制文件安装。