[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] igraph in R/Rscript error
From: |
Michael Krein |
Subject: |
[igraph] igraph in R/Rscript error |
Date: |
Sun, 25 Oct 2009 22:16:57 -0400 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090625) |
Hello community!
I have (hopefully) a very simple question to you all, but it's leaving
me very frustrated here. :-P
I'm trying to call igraph from an Rscript, and the error is as follows:
--
Error in graph.adjacency(c, mode = "undirected", diag = FALSE) :
could not find function "is"
Execution halted
--
Below is the sample code, which executes fine from the interactive R
session:
--
library(igraph)
a<-c(1,2,3,4,5,6,7,8,9)
dim(a) <- c(3,3)
b <- as.matrix(dist(a))
c <- (b < 2)
d<-graph.adjacency(c, mode="undirected", diag=FALSE)
print(transitivity(d))
--
And gives me the transitivity/cluster coefficient of 0, which is expected.
I'm using R version 2.9.2 (2009-08-24) for x86-64, on CentOS 5.4 (I'm
using the R version from the EPEL repository.)
I installed igraph via install.packages("igraph", dependencies=TRUE)
today, so I believe I am using the current version.
Any help would be much appreciated.
Thanks!
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Michael Krein
Breneman Research Group
Rensselaer Exploratory Center for Cheminformatics Research
Rensselaer Polytechnic Institute
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
- [igraph] igraph in R/Rscript error,
Michael Krein <=