[BioC] Problem with bnlearn and Rgraphviz

Martin Morgan mtmorgan at fhcrc.org
Tue Aug 10 15:04:42 CEST 2010


On 08/10/2010 01:12 AM, hcong at cs.usm.my wrote:
> Dear Bioconductors,
> 
> Very sorry for posting this problem. I am a new user to R and Bioconductor
> but I have problem loading the Rgraphviz package while exploring the
> bnlearn package in R. I have downloaded and installed graphviz-2.20.3.1
> and also graphviz-2.20.3 but still have the error message and problem
> below. Can anyone help me with this problem? Thank you.

>From the email below, you'll need to

> (3) graphviz is accessible to R, e.g.,
> the path to the graphviz 'bin' directory is in the system 'PATH'
> variable.

This means setting a Windows 'PATH' environment variable (google for
'set windows path varialbe) to include the directory where graphviz'
libcdt-4.dll is installed, and verifying that this PATH shows up in an R
session with

  Sys.getenv("PATH")

Martin

> 
> Ong
> Penang, Malaysia.
> 
> 
> 
> This application has failed to start because libcdt-4.dll was not found.
> Re-installing the application may fix this problem
> 
> R version 2.11.1 (2010-05-31)
> Copyright (C) 2010 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.
> 
> [Previously saved workspace restored]
> 
>> library(bnlearn)
> Loading required package: 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 library
> 'C:/PROGRA~1/R/R-211~1.1/library/Rgraphviz/libs/Rgraphviz.dll':
>   LoadLibrary failure:  The specified module could not be found.
> 
> 
> 
>   Check that (1) graphviz is installed on your system; (2) the
>   installed version of graphviz matches '2.20.3'; this is the version used
> to build this Rgraphviz package; (3) graphviz is accessible to R, e.g.,
> the path to the graphviz 'bin' directory is in the system 'PATH'
> variable.  See additional instructions in the 'README' file of the
> Rgraphviz 'source' distribution, available at
> 
>   http://bioconductor.org/packages/release/bioc/html/Rgraphviz.html
> 
>   Ask further questions on the Bioconductor mailing list
> 
>   http://bioconductor.org/docs/mailList.html
> 
> 
> Package Rgraphviz not loaded.
> Loading required package: lattice
> Package lattice loaded successfully.
> 
> Attaching package: 'bnlearn'
> 
> The following object(s) are masked from 'package:graph':
> 
>     nodes
> 
> 
> 
> 
> 
> 
> 


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

Location: Arnold Building M1 B861
Phone: (206) 667-2793



More information about the Bioconductor mailing list