[BioC] Rgraphviz and graphviz on windows pc's

Martin Morgan mtmorgan at fhcrc.org
Sat Oct 25 16:59:50 CEST 2008

ravi <rv15cap at gmail.com> writes:

> Hi,
> I have graphviz v2.21 installed along with R 2.8 and Rgraphviz. I am
> not able to get Rgraphviz to function, on win XP and Vista pc's.There
> has been a lot of discussion on this, both in the bioconductor and the

Ravi -- Likely you need to

o. install graphviz ***2.16*** Windows ***binary*** distribution from


   say, in dir $DIR.  We use the following as an example:


   If you install it in other dir, just use your dir correspondingly.

o. set the following Windows environment variables accordingly
   (control panel -> systems -> Advanced -> Environment Variables ):
   (a) create new user variables:
     GRAPHVIZ_INSTALL_DIR   (e.g., C:\/R-tools\/graphviz-2.16)

     Notice the way "\/" are used for the paths above.

   (b) add to user variable 'path': $GRAPHVIZ_INSTALL_DIR/bin
     e.g., C:\R-tools\graphviz-2.16\bin

This is from the instructions in the README file of Rgraphviz. Some
functionality remains unavalable, especially exporting to .dot files.


> R mailing list. I would like to know what the current situation and
> recommended procedure is.
> I get the error message that cdt.dll is missing when trying to load
> Rgraphviz in R. Also, the following output :
>> library(Rgraphviz)
> Loading required package: graph
> Loading required package: grid
> Error in inDL(x, as.logical(local), as.logical(now), ...) :
>   unable to load shared library
> 'C:/Users/Ravi/R/win-library/2.8/Rgraphviz/libs/Rgraphviz.dll':
>   LoadLibrary failure:  Det går inte att hitta den angivna modulen.
> The sessionInfo command gives the following output :
>> sessionInfo()
> R version 2.8.0 (2008-10-20)
> i386-pc-mingw32
> locale:
> LC_COLLATE=Swedish_Sweden.1252;LC_CTYPE=Swedish_Sweden.1252;LC_MONETARY=Swedish_Sweden.1252;LC_NUMERIC=C;LC_TIME=Swedish_Sweden.1252
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
> [8] base
> other attached packages:
> [1] graph_1.20.0
> loaded via a namespace (and not attached):
> [1] cluster_1.11.11 tools_2.8.0
> What is the solution to this problem. Should I switch to an earlier
> version of graphviz? Where do I find it? Should I add something to the
> path in the environmental variable list?
> Thanking You,
> Ravi
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor

Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M2 B169
Phone: (206) 667-2793

More information about the Bioconductor mailing list