本文介绍了无法安装"CHAID"在Mac OS X 10.9.5上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上安装CHAID软件包时遇到问题.我不确定这是我的Mac OS版本的问题还是其他一些问题.有人可以帮忙吗?

I have encountered a problem of installing CHAID package on my Mac. I am not sure if it is a problem of my Mac OS version or some other problems. Could anyone help?

非常感谢您!

软件包"CHAID"可以作为源软件包使用,而不能作为二进制文件

package ‘CHAID’ is available as a source package but not as a binary

在install.packages中的警告: 软件包"CHAID"不可用(对于R版本3.1.2)

Warning in install.packages : package ‘CHAID’ is not available (for R version 3.1.2)

推荐答案

您首先需要安装"partykit"软件包(及其所有依赖项),然后发出以下命令:

You first need to install the 'partykit' package (and all of its dependincies) and then issue this command:

install.packages("CHAID", repos="http://R-Forge.R-project.org", type="source")

这是优胜美地机器上的成绩单,但我认为这在小牛队上也应该会成功. (您会注意到没有调用已编译的代码,因此不需要警告您可能需要XCode.)

This is the transcript on a Yosemite machine but I think this should also succeed on Mavericks. (You can notice that there is no invocation of compiled code, so I do not need to warn you that XCode might be needed.)

>  install.packages("CHAID", repos="http://R-Forge.R-project.org", type="source")
Warning: dependency ‘partykit’ is not available
trying URL 'http://R-Forge.R-project.org/src/contrib/CHAID_0.1-1.tar.gz'
Content type 'application/x-gzip' length 356348 bytes (347 KB)
opened URL
==================================================
downloaded 347 KB

ERROR: dependency ‘partykit’ is not available for package ‘CHAID’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/CHAID’

The downloaded source packages are in
    ‘/private/var/folders/yq/m3j1jqtj6hq6s5mq_v0jn3s80000gp/T/RtmpMD0mfx/downloaded_packages’
Warning message:
In install.packages("CHAID", repos = "http://R-Forge.R-project.org",  :
  installation of package ‘CHAID’ had non-zero exit status
also installing the dependencies ‘RWekajars’, ‘pmml’, ‘strucchange’, ‘mlbench’, ‘RWeka’, ‘psychotools’, ‘psychotree’

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/RWekajars_3.7.12-1.tgz'
Content type 'application/x-gzip' length 6562134 bytes (6.3 MB)
opened URL
==================================================
downloaded 6.3 MB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/pmml_1.4.2.tgz'
Content type 'application/x-gzip' length 184357 bytes (180 KB)
opened URL
==================================================
downloaded 180 KB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/strucchange_1.5-0.tgz'
Content type 'application/x-gzip' length 784786 bytes (766 KB)
opened URL
==================================================
downloaded 766 KB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/mlbench_2.1-1.tgz'
Content type 'application/x-gzip' length 1021909 bytes (997 KB)
opened URL
==================================================
downloaded 997 KB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/RWeka_0.4-24.tgz'
Content type 'application/x-gzip' length 533932 bytes (521 KB)
opened URL
==================================================
downloaded 521 KB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/psychotools_0.4-0.tgz'
Content type 'application/x-gzip' length 353913 bytes (345 KB)
opened URL
==================================================
downloaded 345 KB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/psychotree_0.15-0.tgz'
Content type 'application/x-gzip' length 257879 bytes (251 KB)
opened URL
==================================================
downloaded 251 KB

trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/mavericks/contrib/3.1/partykit_0.8-4.tgz'
Content type 'application/x-gzip' length 1194059 bytes (1.1 MB)
opened URL
==================================================
downloaded 1.1 MB


The downloaded binary packages are in
    /var/folders/yq/m3j1jqtj6hq6s5mq_v0jn3s80000gp/T//RtmpMD0mfx/downloaded_packages
> install.packages("CHAID", repos="http://R-Forge.R-project.org", type="source")
trying URL 'http://R-Forge.R-project.org/src/contrib/CHAID_0.1-1.tar.gz'
Content type 'application/x-gzip' length 356348 bytes (347 KB)
opened URL
==================================================
downloaded 347 KB

* installing *source* package ‘CHAID’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (CHAID)

The downloaded source packages are in
    ‘/private/var/folders/yq/m3j1jqtj6hq6s5mq_v0jn3s80000gp/T/RtmpMD0mfx/downloaded_packages’
>

这篇关于无法安装"CHAID"在Mac OS X 10.9.5上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 02:34