Rgraphviz: .onLoad error
1
0
Entering edit mode
@michael-friendly-3432
Last seen 10.1 years ago
[Sysinfo: Win XP, R 2.8.1, graphviz 2.20] I just tried to install and load Rgraphviz following the instructions at http://www.bioconductor.org/packages/release/bioc/html/Rgraphviz.html giving the error in the transcript below when I try to load the package. I know from previous threads on R-help, e.g., http://finzi.psych.upenn.edu/R/Rhelp08/archive/137494.html that versions of Rgraphviz and graphviz have to be in sync, graphviz (e.g., dot) have to be on the path, etc. and I think I've satisfied these, but I get the same error (.onLoad failed ...). Checking the .dll referred to in the message, unable to load shared library 'C:/R/R-2.8.1/library/Rgraphviz/libs/Rgraphviz.dll': shows that it is actually there. What is wrong & how can I correct it? -Michael Graphviz version: [HEALTH] C:\>dot -V dot - Graphviz version 2.20.2 (Wed Jul 9 19:59:08 GMT 2008) > source("http://bioconductor.org/biocLite.R") > biocLite("Rgraphviz") Running biocinstall version 2.3.13 with R version 2.8.1 Your version of R requires version 2.3 of Bioconductor. trying URL 'http://bioconductor.org/packages/2.3/bioc/bin/windows/contrib/2.8/Rgr aphviz_1.20.4.zip' Content type 'application/zip' length 1008719 bytes (985 Kb) opened URL downloaded 985 Kb package 'Rgraphviz' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\default\Local Settings\Temp\Rtmp5a3NNx\downloaded_packages updating HTML package descriptions > library(Rgraphviz) Loading required package: graph Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'C:/R/R-2.8.1/library/Rgraphviz/libs/Rgraphviz.dll': LoadLibrary failure: The specified module could not be found. Error : .onLoad failed in 'loadNamespace' for 'Rgraphviz' Error: package/namespace load failed for 'Rgraphviz' > sessionInfo() R version 2.8.1 (2008-12-22) 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 sem_0.9-16 rgl_0.84 psych_1.0-67 lattice_0.17-22 [6] heplots_0.8-7 car_1.2-14 loaded via a namespace (and not attached): [1] cluster_1.11.13 tools_2.8.1 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA
Rgraphviz Rgraphviz • 1.2k views
ADD COMMENT
0
Entering edit mode
@kasper-daniel-hansen-2979
Last seen 15 months ago
United States
You are using R-2.8.1, so the easiest fix would be for you to upgrade to R-2.9. I am not sure we can be too helpfull with older version. Nevertheless, from http://bioconductor.org/checkResults/2.3/bioc-LATEST/Rgraphviz /liverpool-checksrc.html it seems that this version of graphviz was build using 2.21, which is a development version (based on the directory name). You will not be able to find that archived anywhere. I suggest building from source yourself. Or perhaps try Graphviz 2.22 which we still have some hiccups with. So, you should upgrade.... Kasper On May 5, 2009, at 14:49 , Michael Friendly wrote: > [Sysinfo: Win XP, R 2.8.1, graphviz 2.20] > > I just tried to install and load Rgraphviz following the > instructions at > http://www.bioconductor.org/packages/release/bioc/html/Rgraphviz.html > giving the error in the transcript below when I try to load the > package. > > I know from previous threads on R-help, e.g., > http://finzi.psych.upenn.edu/R/Rhelp08/archive/137494.html > that versions of Rgraphviz and graphviz have to be in sync, graphviz > (e.g., dot) > have to be on the path, etc. and I think I've satisfied these, but I > get the same > error (.onLoad failed ...). > Checking the .dll referred to in the message, > unable to load shared library 'C:/R/R-2.8.1/library/Rgraphviz/libs/ > Rgraphviz.dll': > shows that it is actually there. > > What is wrong & how can I correct it? > -Michael > > > Graphviz version: > [HEALTH] C:\>dot -V > dot - Graphviz version 2.20.2 (Wed Jul 9 19:59:08 GMT 2008) > > > > source("http://bioconductor.org/biocLite.R") > > biocLite("Rgraphviz") > Running biocinstall version 2.3.13 with R version 2.8.1 > Your version of R requires version 2.3 of Bioconductor. > trying URL 'http://bioconductor.org/packages/2.3/bioc/bin/windows/co ntrib/2.8/Rgraphviz_1.20.4.zip' > Content type 'application/zip' length 1008719 bytes (985 Kb) > opened URL > downloaded 985 Kb > > package 'Rgraphviz' successfully unpacked and MD5 sums checked > > The downloaded packages are in > C:\Documents and Settings\default\Local Settings\Temp > \Rtmp5a3NNx\downloaded_packages > updating HTML package descriptions > > library(Rgraphviz) > Loading required package: graph > Error in inDL(x, as.logical(local), as.logical(now), ...) : > unable to load shared library 'C:/R/R-2.8.1/library/Rgraphviz/libs/ > Rgraphviz.dll': > LoadLibrary failure: The specified module could not be found. > > > Error : .onLoad failed in 'loadNamespace' for 'Rgraphviz' > Error: package/namespace load failed for 'Rgraphviz' > > sessionInfo() > R version 2.8.1 (2008-12-22) > 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 sem_0.9-16 rgl_0.84 psych_1.0-67 > lattice_0.17-22 > [6] heplots_0.8-7 car_1.2-14 > loaded via a namespace (and not attached): > [1] cluster_1.11.13 tools_2.8.1 > -- > Michael Friendly Email: friendly AT yorku DOT ca Professor, > Psychology Dept. > York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 > 4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html > Toronto, ONT M3J 1P3 CANADA > > _______________________________________________ > 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
ADD COMMENT
0
Entering edit mode
Kasper Daniel Hansen wrote: > You are using R-2.8.1, so the easiest fix would be for you to upgrade > to R-2.9. I am not sure we can be too helpfull with older version. > > Nevertheless, from > http://bioconductor.org/checkResults/2.3/bioc-LATEST/Rgraphviz /liverpool-checksrc.html > > it seems that this version of graphviz was build using 2.21, which is > a development version (based on the directory name). You will not be > able to find that archived anywhere. I suggest building from source > yourself. Or perhaps try Graphviz 2.22 which we still have some > hiccups with. > > So, you should upgrade.... Thanks very much for the this information Kasper. Unfortunately, upgrading to R-2.9.0 is a largish job because it entails upgrading some other packages that don't yet work with 2.9.0 and modifying my eclipse development environment as well. I was hoping to wait until 2.9.0-patched and other packages settled down. Because graphviz and Rgraphviz seem to have a long history of incompatibility problems, could I suggest that the DESCRIPTION file for Rgraphviz be more explicit about exactly which version of graphviz it was built with? The present System Requirements, Graphviz version >= 2.2 is insufficiently precise (I have Graphviz 2.20). Such information could be also be maintained in an Rgraphvis-package.Rd file, (with a link to the graphviz version.) but that doesn't seem to be part of the package That might forestall a lot of traffic on the bioc list on this topic, though I realize it creates an extra maintenance step. -- Michae Friendly Email: friendly at yorku.ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA
ADD REPLY
0
Entering edit mode
Michael, First to your point on the DESCRIPTION file. The SystemRequirements field in the DESCRIPTION file is intended to describe system requirements above what R expects in order to install/build the package from source. As such the Rgraphviz package claims it can be built from source against Graphviz version 2.2 or greater. We can bump that number up to something more recent since we aren't testing it against Graphviz 2.2 anymore, but that wouldn't make your life any easier. Over the last development cycle Kasper and others (including me) worked to make Rgraphviz easier to use on Windows. I can't speak about non BioC packages, but all BioC 2.4 packages (running on R 2.9.x) are stable. One of the changes Kasper made to the Rgraphviz package in BioC 2.4 is improving the graphvizVersion function to print out both the version of Graphviz that Rgraphviz was built against alongside the version that Rgraphviz is currently linking to. > library(Rgraphviz) Loading required package: graph Loading required package: grid > graphvizVersion() $installed_version [1] '2.20.3' $build_version [1] '2.20.3' In addition, when you load the Rgraphviz library, it will produce a warning like Warning message: Rgraphviz built with Graphviz version 2.20.3. Found installed Graphviz version 2.22.2. This _may_ cause problems. if something looks squirrelly. It is enhancements like these that make it worth upgrading your version of R. > sessionInfo() R version 2.9.0 (2009-04-17) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUME RIC=C;LC_TIME=English_United States.1252 attached base packages: [1] grid stats graphics grDevices utils datasets methods [8] base other attached packages: [1] Rgraphviz_1.22.1 graph_1.22.2 loaded via a namespace (and not attached): [1] tools_2.9.0 > Kasper Daniel Hansen wrote: >> You are using R-2.8.1, so the easiest fix would be for you to upgrade >> to R-2.9. I am not sure we can be too helpfull with older version. >> >> Nevertheless, from >> http://bioconductor.org/checkResults/2.3/bioc-LATEST/Rgraphviz /liverpool-checksrc.html >> >> it seems that this version of graphviz was build using 2.21, which is >> a development version (based on the directory name). You will not be >> able to find that archived anywhere. I suggest building from source >> yourself. Or perhaps try Graphviz 2.22 which we still have some >> hiccups with. >> >> So, you should upgrade.... > Thanks very much for the this information Kasper. Unfortunately, > upgrading to R-2.9.0 is a largish job > because it entails upgrading some other packages that don't yet work > with 2.9.0 and modifying my > eclipse development environment as well. I was hoping to wait until > 2.9.0-patched and other > packages settled down. > > Because graphviz and Rgraphviz seem to have a long history of > incompatibility problems, could I suggest > that the DESCRIPTION file for Rgraphviz be more explicit about exactly > which version of graphviz it > was built with? > The present System Requirements, > Graphviz version >= 2.2 > is insufficiently precise (I have Graphviz 2.20). Such information > could be also be maintained in an > Rgraphvis-package.Rd file, (with a link to > the graphviz version.) but that doesn't seem to be part of the package > That might forestall a lot of traffic on the bioc list on this topic, > though I realize it creates an extra > maintenance step. > >
ADD REPLY

Login before adding your answer.

Traffic: 1076 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