Displaying 4 results from an estimated 4 matches for "randomgraph".
2008 Oct 27
3
Problem in installation of "Rgraphviz" package
...and store in R library but i am not getting this package in R installation list.
I made review in google search net and use the following command:
###
source("http://bioconductor.org/biocLite.R")
biocLite("Rgraphviz")
set.seed(123)
V <- letters[1:10]
M <- 1:4
g1 <- randomGraph(V, M, 0.2)
library("graph")
library("grid")
library("Rgraphviz")
###
I got following Error message:
"
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library 'C:/PROGRA~1/R/R-27~1.0/library/Rgraphviz/libs/Rgraphviz.dll...
2010 Jun 03
1
Memory leak using Rgraphviz
...footprint viewed through top to increase every time it's run. I traced the increase in memory usage to layoutGraph() and wrote the following short function that reproduces the problem:
foo <- function () {
library(Rgraphviz)
set.seed(123)
V <- letters[1:26]
M <- 1:2
g1 <- randomGraph(V, M, 0.5)
edgemode(g1) <- "directed"
x <- layoutGraph(g1,name="foo",layoutType="twopi", recipEdges="distinct")
}
I expected that any memory allocated by this function would be freed when it returns, but that's not the case. Is there something...
2010 Mar 31
0
You are right and the problem is solved. Re: about the possible errors in Rgraphviz Package
Hi Gabor,
I just used your R code below and the code worked properly
without any error messages. Attached is the output graph, which
may be the one you expected.
library("Rgraphviz")
set.seed(123)
V <- letters[1:10]
M <- 1:4
g1 <- randomGraph(V, M, 0.2)
g1
plot(g1)
Thanks.
Howard
On Wed Mar 31 11:18:25 EDT 2010, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> By the way, just in case you did not read the entire message R
> crashed
> when I tried to run the code from the vignette.
>
> On Wed, Mar...
2010 Mar 31
1
You are right and the problem is solved. Re: about the possible errors in Rgraphviz Package
Hi Martin,
It is really a 'PATH' problem. After adding C:\Program
Files\Graphviz2.20\bin to the 'PATH' environment variable, the
Rgraphviz package can be loaded without any error messages.
Sorry that I ONLY set my 'PATH' environment variable correctly
for R but not for Graphviz.
Thank you and Duncan so much for your great help.
Howard
On Tue Mar 30 18:12:54