[R] Fwd: Rgraphviz installation problem
1
0
Entering edit mode
@martin-morgan-1513
Last seen 12 days ago
United States
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<mtmorgan at="" fhcrc.org=""> > Date: Mon, Jul 25, 2011 at 9:25 AM > Subject: Re: [R] Rgraphviz installation problem > To: "Ram H. Sharma"<sharma.ram.h at="" gmail.com=""> > Cc: r-help at 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.biocond="" uctor.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.htm="" l=""> >> > > 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="" wi="" ndows="" 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
GO Cancer Rgraphviz GO Cancer Rgraphviz • 873 views
ADD COMMENT
0
Entering edit mode
@ram-h-sharma-4773
Last seen 9.7 years ago
Hi Martin Thank you for help, that helped me to come out the problem ! On Mon, Jul 25, 2011 at 11:46 AM, Martin Morgan <mtmorgan@fhcrc.org> wrote: > 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<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<http: bioconductor.or="" g="" 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<mtmorgan@fhcrc.org> >> Date: Mon, Jul 25, 2011 at 9:25 AM >> Subject: Re: [R] Rgraphviz installation problem >> To: "Ram H. Sharma"<sharma.ram.h@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.**bioconduc**tor.org/biocLite.R<http: biocondu="" ctor.org="" bioclite.r=""> >>> <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="" htm="" l="" **rgraphviz.html=""> >>> <http: **bioconductor.org="" packages="" **release="" bioc="" html="" rgraphviz.="" **html<http:="" bioconductor.org="" packages="" release="" bioc="" html="" rgraphviz.ht="" ml=""> >>> > >>> >>> >> additional details are at the url above. For instance, the specific >> version >> of graphviz required is >> >> http://www.graphviz.org/pub/****graphviz/stable/windows/**<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<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: bioconduct="" or.org="" docs="" **maillist.html=""> >>> <http: **bioconductor.org="" docs="" **maillist.html<http:="" bioconducto="" r.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 > -- Ram H [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 645 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6