[BioC] Problem with bnlearn and Rgraphviz

hcong at cs.usm.my hcong at cs.usm.my
Tue Aug 10 10:12:57 CEST 2010

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-
and also graphviz-2.20.3 but still have the error message and problem
below. Can anyone help me with this problem? Thank you.

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
  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


  Ask further questions on the Bioconductor mailing list


Package Rgraphviz not loaded.
Loading required package: lattice
Package lattice loaded successfully.

Attaching package: 'bnlearn'

The following object(s) are masked from 'package:graph':


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the Bioconductor mailing list