On 07/25/2011 07:58 AM, Ram H. Sharma wrote:
Hi All
How can I adjust this path. My current path of Graphviz installation is:
C:\Program Files (x86)\Graphviz2.20\bin
and Rgraphviz is
C:\R\library\Rgraphviz\libs\i386
Please help me. I am new to Rgraphviz.
PATH is an environment variable. From the R FAQ for Windows
http://cran.fhcrc.org/bin/windows/base/rw-FAQ.html#How-do-I-set-environment-variables_003f
"For all applications via Windows. How you set an environment variable
is system specific: under Windows 2000/XP/Server 2003 you can use
`System' in the control panel or the properties of `My Computer' (under
the `Advanced' tab). Under Vista/7, go to `User Accounts' in the Control
Panel, and select your account and then `Change my environment variables'."
Create a 'New' user variable named PATH, with value
C:\Program Files (x86)\Graphviz2.20\bin
If a value already exists for PATH, add the above, separated by a
semicolon ;. Restart R and check that the path is set correctly
path <- strsplit(Sys.getenv("PATH"), ";")[[1]]
dir(path[grepl("Graphviz2.20", path)])
should return several file names, including, e.g., libgraph-4.dll.
Install Rgraphviz with
source("http://bioconductor.org/biocLite.R")
biocLite('Rgraphviz")
Ram
"your Windows system 'PATH' variable needs to be adjusted once you've
installed graphviz and before installing Rgraphviz"
---------- Forwarded message ----------
From: Martin Morgan<mtmor...@fhcrc.org>
Date: Mon, Jul 25, 2011 at 9:25 AM
Subject: Re: [R] Rgraphviz installation problem
To: "Ram H. Sharma"<sharma.ra...@gmail.com>
Cc: r-help@r-project.org
On 07/25/2011 06:05 AM, Ram H. Sharma wrote:
Dear experts
I installed Rgraphviz with the following command:
source("http://www.**bioconductor.org/biocLite.R<http://www.bioconductor.org/biocLite.R>
")
biocLite("Rgraphviz")
But had a problem when I tried to load it.
This says that libcdt-4.dll is missing in your computer and the following
message in R window:
library("Rgraphviz")
Loading required package: graph
Loading required package: grid
Error : .onLoad failed in loadNamespace() for 'Rgraphviz', details:
call: value[[3L]](cond)
error: unable to load shared object
'C:/R/library/Rgraphviz/libs/**i386/Rgraphviz.dll':
LoadLibrary failure: The specified module could not be found.
Check that (1) graphviz is installed on your system; (2) the
you need to install graphviz, as well as Rgraphviz.
installed version of graphviz matches '2.20.3'; this is the version
used to build this Rgraphviz package; (3) graphviz is accessible to
graphviz has to be a specific version.
R, e.g., the path to the graphviz 'bin' directory is in the system
'PATH' variable. See additional instructions in the 'README' file of
your Windows system 'PATH' variable needs to be adjusted once you've
installed graphviz and before installing Rgraphviz
the Rgraphviz 'source' distribution, available at
http://bioconductor.org/**packages/release/bioc/html/**Rgraphviz.html<http://bioconductor.org/packages/release/bioc/html/Rgraphviz.html>
additional details are at the url above. For instance, the specific version
of graphviz required is
http://www.graphviz.org/pub/**graphviz/stable/windows/**
graphviz-2.20.3.1.msi<http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.20.3.1.msi>
Ask further questions on the Bioconductor mailing list
http://bioconductor.org/docs/**mailList.html<http://bioconductor.org/docs/mailList.html>
if you have more questions, ask on the Bioconductor mailing list.
Martin
Error: package/namespace load failed for 'Rgraphviz'
Help me please.
--
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109
Location: M1-B861
Telephone: 206 667-2793
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.