caroline.keef at jbaconsulting.co.uk
2007-Dec-17 14:00 UTC
[Rd] Installation of RGtk2 (PR#10519)
Full_Name: Caroline Keef Version: 2.6.1 OS: Windows XP Submission from: (NULL) (195.171.203.131) I have tried to install the package rggobi which if I'm right requires the package RGtk2 If I install RGtk2 using the install.packages (I used the UK (Bristol) mirror, I haven't tried any other mirror) within R and then use library(RGtk2) I get the following message box "This application has failed to start because libtak-1.0-0.dll was not found. Re-installing the application may fix this problem." I click ok and the following is printed to the R console. Error in dyn.load(file, ...) : unable to load shared library 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': LoadLibrary failure: The specified module could not be found. [1] "PLEASE RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN" Error in .C("R_gtkInit", length(args), x = args, PACKAGE = "RGtk2") : C symbol name "R_gtkInit" not in DLL for package "RGtk2" In addition: Warning message: In fun(...) : Failed to load RGtk2 dynamic library:Error in dyn.load(file, ...) : unable to load shared library 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': LoadLibrary failure: The specified module could not be found. Error : .onLoad failed in 'loadNamespace' for 'RGtk2' Error: package/namespace load failed for 'RGtk2' I've re-started R again and the same happened. I've also tried downloading the RGtk2 zip files from the CRAN website and installing from a local zip file option which gave the same results. I haven't tried re-installing R to get around this problem.
This isn't an R bug. You should send contributed package problems to the package maintainer, in this case Michael Lawrence. You need to install GTK; it's not included as part of the package. See this page for instructions: http://www.ggobi.org/rgtk2/ It would probably be a good idea for the R package to recognize this omission and print more helpful error messages, but setting that up is tricky. Michael, if you want help, please contact me offline. Duncan Murdoch On 12/17/2007 9:00 AM, caroline.keef at jbaconsulting.co.uk wrote:> Full_Name: Caroline Keef > Version: 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.171.203.131) > > > I have tried to install the package rggobi which if I'm right requires the > package RGtk2 > If I install RGtk2 using the install.packages (I used the UK (Bristol) mirror, I > haven't tried any other mirror) within R and then use library(RGtk2) I get the > following message box > > "This application has failed to start because libtak-1.0-0.dll was not found. > Re-installing the application may fix this problem." > > I click ok and the following is printed to the R console. > > Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > [1] "PLEASE RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN" > Error in .C("R_gtkInit", length(args), x = args, PACKAGE = "RGtk2") : > C symbol name "R_gtkInit" not in DLL for package "RGtk2" > In addition: Warning message: > In fun(...) : > Failed to load RGtk2 dynamic library:Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > Error : .onLoad failed in 'loadNamespace' for 'RGtk2' > Error: package/namespace load failed for 'RGtk2' > > I've re-started R again and the same happened. I've also tried downloading the > RGtk2 zip files from the CRAN website and installing from a local zip file > option which gave the same results. I haven't tried re-installing R to get > around this problem. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
RGtk2 is a packages that is a wrapper for GTK+ GUI toolkit. GTK+ itself is a large separate software package. I do not know if GTK+ is delivered within the RGtk2, but I doubt it as the former is quite big (at least with my own package that uses GTK, users need to install GTK separately). Now on Windows you can install GTK runtime environment as any other application by downloading it from here: http://gladewin32.sf.net and running a Windows-standard installation. The default installation should be fine. After you have GTK installed, reinstall the RGtk2 package if it does not work automatically. Actually I just checked http://www.ggobi.org/rgtk2/ and it says that indeed you need to install GTK separately. Best, Oleg On Mon, 2007-12-17 at 15:00 +0100, caroline.keef at jbaconsulting.co.uk wrote:> Full_Name: Caroline Keef > Version: 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.171.203.131) > > > I have tried to install the package rggobi which if I'm right requires the > package RGtk2 > If I install RGtk2 using the install.packages (I used the UK (Bristol) mirror, I > haven't tried any other mirror) within R and then use library(RGtk2) I get the > following message box > > "This application has failed to start because libtak-1.0-0.dll was not found. > Re-installing the application may fix this problem." > > I click ok and the following is printed to the R console. > > Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > [1] "PLEASE RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN" > Error in .C("R_gtkInit", length(args), x = args, PACKAGE = "RGtk2") : > C symbol name "R_gtkInit" not in DLL for package "RGtk2" > In addition: Warning message: > In fun(...) : > Failed to load RGtk2 dynamic library:Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > Error : .onLoad failed in 'loadNamespace' for 'RGtk2' > Error: package/namespace load failed for 'RGtk2' > > I've re-started R again and the same happened. I've also tried downloading the > RGtk2 zip files from the CRAN website and installing from a local zip file > option which gave the same results. I haven't tried re-installing R to get > around this problem. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- Dr Oleg Sklyar * EBI-EMBL, Cambridge CB10 1SD, UK * +44-1223-494466
caroline.keef at jbaconsulting.co.uk wrote:> Full_Name: Caroline Keef > Version: 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.171.203.131) > > > I have tried to install the package rggobi which if I'm right requires the > package RGtk2 > If I install RGtk2 using the install.packages (I used the UK (Bristol) mirror, I > haven't tried any other mirror) within R and then use library(RGtk2) I get the > following message box > > "This application has failed to start because libtak-1.0-0.dll was not found. > Re-installing the application may fix this problem." > > I click ok and the following is printed to the R console. > > Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > [1] "PLEASE RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN" > Error in .C("R_gtkInit", length(args), x = args, PACKAGE = "RGtk2") : > C symbol name "R_gtkInit" not in DLL for package "RGtk2" > In addition: Warning message: > In fun(...) : > Failed to load RGtk2 dynamic library:Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > Error : .onLoad failed in 'loadNamespace' for 'RGtk2' > Error: package/namespace load failed for 'RGtk2' > > I've re-started R again and the same happened. I've also tried downloading the > RGtk2 zip files from the CRAN website and installing from a local zip file > option which gave the same results. I haven't tried re-installing R to get > around this problem. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >This is a package problem, not an issue in R itself, hence you should not use the bug report interface. However, the error indicates reliance on an external library, which you presumably haven't got, so retrying is not going to help anything. You probably need to go to http://www.ggobi.org/rgtk2/ and follow the instructions that start with "If you're on Windows..." -- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
This is not a bug, and not appropriate to R-bugs as it is about a contributed package.>From http://cran.r-project.org/bin/windows/contrib/2.6/ReadMe you will seePackage RGtk2 requires an installed version of Gtk2 with version number >= 2.10.11. Now, so does GGobi and hence rggobi. 'Installed' includes ensuring they are on your path, so if GGobi works I would expect RGtk2 to. On Mon, 17 Dec 2007, caroline.keef at jbaconsulting.co.uk wrote:> Full_Name: Caroline Keef > Version: 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.171.203.131) > > > I have tried to install the package rggobi which if I'm right requires the > package RGtk2 > If I install RGtk2 using the install.packages (I used the UK (Bristol) mirror, I > haven't tried any other mirror) within R and then use library(RGtk2) I get the > following message box > > "This application has failed to start because libtak-1.0-0.dll was not found. > Re-installing the application may fix this problem." > > I click ok and the following is printed to the R console. > > Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > [1] "PLEASE RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN" > Error in .C("R_gtkInit", length(args), x = args, PACKAGE = "RGtk2") : > C symbol name "R_gtkInit" not in DLL for package "RGtk2" > In addition: Warning message: > In fun(...) : > Failed to load RGtk2 dynamic library:Error in dyn.load(file, ...) : > unable to load shared library > 'C:/PROGRA~1/R/R-26~1.1/library/RGtk2/libs/RGtk2.dll': > LoadLibrary failure: The specified module could not be found. > > > Error : .onLoad failed in 'loadNamespace' for 'RGtk2' > Error: package/namespace load failed for 'RGtk2' > > I've re-started R again and the same happened. I've also tried downloading the > RGtk2 zip files from the CRAN website and installing from a local zip file > option which gave the same results. I haven't tried re-installing R to get > around this problem. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- 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