igraph错误找不到函数“hist”

时间:2014-01-21 06:48:47

标签: r igraph

我使用的是RStudio版本0.98.484和R版本3.0.2(2013-09-25) - Mac OSX 10.6.8上的“飞盘航行”。

这是一个代码示例:

a  <- "a"
b  <- "b"
c  <- "c"
d  <- "d"
e  <- "e"
f  <- "f"

model1 <- ug(~a:b, ~a:c:d,~b:c,~a:c:d:f,~d:e:f,~b:f)
model1 <- as(model1, "igraph")

应用这些功能:

cluster.distribution() #or
degree.distribution()

返回错误:

Error in cluster.distribution() : could not find function "hist"
Error in degree.distribution() : could not find function "hist"

现在我发现了这个:

https://github.com/igraph/igraph/issues/257包含以下内容: https://github.com/igraph/igraph/commit/0567c2694a99686bbd1855299822ad52dcd5989a slution。

但问题似乎有所不同,因为它是在我的3.0.2 R版本下不能工作的hist()函数而不是“$ intensityities”。

我从这里下载了最新版的igraph包: https://code.google.com/p/igraph/downloads/detail?name=igraph_nightly_0.7-f8164af-20131004.tar.gz&can=2&q=

然而,当我尝试使用以下方法在终端中安装它时: R CMD INSTALL~ / Downloads / igraph_0.7.ta​​r.gz

出现以下错误消息:

* installing to library ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library’
* installing *source* package ‘igraph’ ...
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 144: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 145: make: command not found
/Library/Frameworks/R.framework/Resources/bin/config: line 259: make: command not found
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/private/var/folders/B-/B-vij4PvG1K9q1Uv2RID9k+++TI/-Tmp-/RtmpU3N8GA/R.INSTALL3a66344bc5d4/igraph':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
ERROR: configuration failed for package ‘igraph’
* removing ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/igraph’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/igraph’

0 个答案:

没有答案