Hi, I have problem loading Rgraphviz. Following the instructions specified by the README in Rgraphviz_1.20.3.tar.gz didn't help either. 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:\Graphviz-2.21) <-------------------------- I stated C:\Graphviz-2.21 (I also tried C:\/Graphviz-2.21) GRAPHVIZ_INSTALL_MAJOR (e.g., 2) <-------------------------- I stated 2 GRAPHVIZ_INSTALL_MINOR (e.g., 20) <-------------------------- I stated 21 Notice the way "\/" are used for the paths above. (b) add to user variable 'path': $GRAPHVIZ_INSTALL_DIR/bin e.g., C:\Graphviz-2.21\bin <-------------------------- I stated C:\Graphviz-2.21\bin (I also tried C:\/Graphviz-2.21\/bin)> library("Rgraphviz")Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll': LoadLibrary failure: The specified module could not be found. In addition: Warning messages: 1: closing unused connection 4 (D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll) 2: closing unused connection 3 (D:/PROGRA~1/R/R-2.8.0/library/Rgraphviz/libs/Rgraphviz.dll) Error : .onLoad failed in 'loadNamespace' for 'Rgraphviz' Error: package/namespace load failed for 'Rgraphviz'> file.exists("D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll")[1] TRUE> sessionInfo()R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] grid stats graphics grDevices utils datasets methods 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
Rgraphviz is a Bioconductor package, so please ask on the apporpriate mailing list (see the posting guide). On Tue, 2 Dec 2008, Daren Tan wrote:> > Hi, > > I have problem loading Rgraphviz. Following the instructions specified by the README in Rgraphviz_1.20.3.tar.gz didn't help either. > > 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:\Graphviz-2.21) <-------------------------- I stated C:\Graphviz-2.21 (I also tried C:\/Graphviz-2.21) > GRAPHVIZ_INSTALL_MAJOR (e.g., 2) <-------------------------- I stated 2 > GRAPHVIZ_INSTALL_MINOR (e.g., 20) <-------------------------- I stated 21 > Notice the way "\/" are used for the paths above. > (b) add to user variable 'path': $GRAPHVIZ_INSTALL_DIR/bin > e.g., C:\Graphviz-2.21\bin <-------------------------- I stated C:\Graphviz-2.21\bin (I also tried C:\/Graphviz-2.21\/bin)It should be 'PATH', not 'path': environment variables are case-sensitive (in general, not sure what happens with PATH if set there).>> library("Rgraphviz") > Error in inDL(x, as.logical(local), as.logical(now), ...) : > unable to load shared library 'D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll': > LoadLibrary failure: The specified module could not be found.That does not mean Rgraphviz.dll: it means a dependent DLL. You did actually install graphviz, I presume?> In addition: Warning messages: > 1: closing unused connection 4 (D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll) > 2: closing unused connection 3 (D:/PROGRA~1/R/R-2.8.0/library/Rgraphviz/libs/Rgraphviz.dll) > Error : .onLoad failed in 'loadNamespace' for 'Rgraphviz' > Error: package/namespace load failed for 'Rgraphviz' > >> file.exists("D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll") > [1] TRUE > >> sessionInfo() > R version 2.8.0 (2008-10-20) > i386-pc-mingw32 > locale: > LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 > attached base packages: > [1] grid stats graphics grDevices utils datasets methods 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 > > ______________________________________________ > R-help at 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. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
You can get LoadLibrary failures if a dependency is not found (e.g. a required dll or shlib used by the dll that you are explicitly loading). So make sure that all necessary dependencies (e.g. graphviz libs) are available in the system path. Rory Rory Winston RBS Global Banking & Markets Office: +44 20 7085 4476 -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Daren Tan Sent: 02 December 2008 09:37 To: r-help at stat.math.ethz.ch Subject: [R] Can't load Rgraphviz on windows-based R Hi, I have problem loading Rgraphviz. Following the instructions specified by the README in Rgraphviz_1.20.3.tar.gz didn't help either. 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:\Graphviz-2.21) <-------------------------- I stated C:\Graphviz-2.21 (I also tried C:\/Graphviz-2.21) GRAPHVIZ_INSTALL_MAJOR (e.g., 2) <-------------------------- I stated 2 GRAPHVIZ_INSTALL_MINOR (e.g., 20) <-------------------------- I stated 21 Notice the way "\/" are used for the paths above. (b) add to user variable 'path': $GRAPHVIZ_INSTALL_DIR/bin e.g., C:\Graphviz-2.21\bin <-------------------------- I stated C:\Graphviz-2.21\bin (I also tried C:\/Graphviz-2.21\/bin)> library("Rgraphviz")Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll': LoadLibrary failure: The specified module could not be found. In addition: Warning messages: 1: closing unused connection 4 (D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.dll) 2: closing unused connection 3 (D:/PROGRA~1/R/R-2.8.0/library/Rgraphviz/libs/Rgraphviz.dll) Error : .onLoad failed in 'loadNamespace' for 'Rgraphviz' Error: package/namespace load failed for 'Rgraphviz'> file.exists("D:/PROGRA~1/R/R-28~1.0/library/Rgraphviz/libs/Rgraphviz.d > ll")[1] TRUE> sessionInfo()R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] grid stats graphics grDevices utils datasets methods 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 ______________________________________________ R-help at 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. *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the=2...{{dropped:22}}