igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] beginner's help on igraph in R


From: Lin Freeman
Subject: [igraph] beginner's help on igraph in R
Date: Mon, 22 Sep 2008 11:53:34 -0700

I have reviewed your igraph-help thread and find it to be very high
level—sophisticated.  In contrast,  I have a an extremely simple
minded inquiry.  I am a beginner with linux, R and igraph, so I hope
that you guys are tolerant.

 I just installed R and the igraph package (along with IGUI.R) on my
windows machine.  Everything worked fine right from the beginning. But
when I do the same thing on my linux box (running ubuntu 8.04) I have
a problem.  Again, everything seems to work, until it comes to
actually producing a simple graph. No picture is produced.  Instead I
get a (to me, cryptic) message in my terminal window. The whole
interaction reads as follows:

=====================================================================================
address@hidden:~$ R



R version 2.6.2 (2008-02-08)

Copyright (C) 2008 The R Foundation for Statistical Computing

ISBN 3-900051-07-0



R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.



  Natural language support but running in an English locale



R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.



Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.



> library(igraph)

> source("/usr/share/R/GUI.R")

Loading required package: tcltk

Loading Tcl/Tk interface ... done

>

 *** caught segfault ***

address 0x88b13aa8, cause 'memory not mapped'



Traceback:

 1: .Call("R_igraph_is_connected", graph, as.numeric(mode), PACKAGE = "igraph")

 2: is.connected(graph)

 3: v(graph)

 4: ret()

 5: params("plot", "layout")

 6: plot.igraph(...)

 7: fun(g, layout = layouts[[read$layout + 1]], vertex.size =
read$vertex.size,     vertex.label = labels, vertex.label.dist =
label.dist, edge.label = elabels,     edge.arrow.size = eas, ...)

 8: .tkigraph.plot(simple = TRUE)

 9: function () {    .tkigraph.plot(simple = TRUE)}()

10: doTryCatch(return(expr), name, parentenv, handler)

11: tryCatchOne(expr, names, parentenv, handlers[[1]])

12: tryCatchList(expr, classes, parentenv, handlers)

13: tryCatch(expr, error = function(e) {    call <- conditionCall(e)
 if (!is.null(call)) {        if (identical(call[[1]],
quote(doTryCatch)))             call <- sys.call(-4)        dcall <-
deparse(call)[1]        prefix <- paste("Error in", dcall, ": ")
 LONG <- 75        msg <- conditionMessage(e)        sm <-
strsplit(msg, "\n")[[1]]        if (14 + nchar(dcall, type = "w") +
nchar(sm[1], type = "w") >             LONG)             prefix <-
paste(prefix, "\n  ", sep = "")    }    else prefix <- "Error : "
msg <- paste(prefix, conditionMessage(e), "\n", sep = "")
.Internal(seterrmessage(msg[1]))    if (!silent &&
identical(getOption("show.error.messages"),         TRUE)) {
cat(msg, file = stderr())        .Internal(printDeferredWarnings())
}    invisible(structure(msg, class = "try-error"))})

14: try(function () {    .tkigraph.plot(simple = TRUE)}())



Possible actions:

1: abort (with core dump, if enabled)

2: normal R exit

3: exit R without saving workspace

4: exit R saving workspace

Selection:

======================================================================================

I assume that the message "caught segfault" is the problem, but I have
no idea what it is trying to tell me, and I'd appreciate any
suggestions you could make that might help me produce images in linux.

Thanks,
Lin Freeman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]