After installing rggobi, I get the following error when I try to load it:> local({pkg <- select.list(sort(.packages(all.available = TRUE)))+ if(nchar(pkg)) library(pkg, character.only=TRUE)}) Loading required package: RGtk2 Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library 'C:/PROGRA~1/R/R-24~1.1/library/rggobi/libs/rggobi.dll': LoadLibrary failure: The specified module could not be found. Error in fun(...) : Could not load the rggobi library - please ensure GGobi is on the library path Error: .onLoad failed in 'loadNamespace' for 'rggobi' Error: package/namespace load failed for 'rggobi' The rggobi.dll appears to be in right directory. Any suggestions on how to help R find the dll? Thanks. Tom [[alternative HTML version deleted]]
Hi Tom, Did you install ggobi first? And the RGtk2 package as well? Hadley On 3/18/07, Tom La Bone <labone at gforcecable.com> wrote:> > > After installing rggobi, I get the following error when I try to load it: > > > > > local({pkg <- select.list(sort(.packages(all.available = TRUE))) > > + if(nchar(pkg)) library(pkg, character.only=TRUE)}) > > Loading required package: RGtk2 > > Error in dyn.load(x, as.logical(local), as.logical(now)) : > > unable to load shared library > 'C:/PROGRA~1/R/R-24~1.1/library/rggobi/libs/rggobi.dll': > > LoadLibrary failure: The specified module could not be found. > > Error in fun(...) : Could not load the rggobi library - please ensure GGobi > is on the library path > > Error: .onLoad failed in 'loadNamespace' for 'rggobi' > > Error: package/namespace load failed for 'rggobi' > > > > The rggobi.dll appears to be in right directory. Any suggestions on how to > help R find the dll? Thanks. > > > > Tom > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >
This is really a GGobi issue not an R issue, but I believe their mailing lists are down. I think you are assuming that it is rggobi.dll that cannot be found, but that is not what the message says. I would have expected Windows to give you a dialog box telling you the exact problem, and I suspect it was exactly what the Error message says: it is one of the ggobi or GTk or XML DLLs that was not found. We did have a lot of trouble with similar things using GGobi in a shared installation: you need to check permissions as well as presence in the path of all the dependent DLLs. On Sun, 18 Mar 2007, Tom La Bone wrote:> > > After installing rggobi, I get the following error when I try to load it: > > > >> local({pkg <- select.list(sort(.packages(all.available = TRUE))) > > + if(nchar(pkg)) library(pkg, character.only=TRUE)}) > > Loading required package: RGtk2 > > Error in dyn.load(x, as.logical(local), as.logical(now)) : > > unable to load shared library > 'C:/PROGRA~1/R/R-24~1.1/library/rggobi/libs/rggobi.dll': > > LoadLibrary failure: The specified module could not be found. > > Error in fun(...) : Could not load the rggobi library - please ensure GGobi > is on the library path > > Error: .onLoad failed in 'loadNamespace' for 'rggobi' > > Error: package/namespace load failed for 'rggobi' > > > > The rggobi.dll appears to be in right directory. Any suggestions on how to > help R find the dll? Thanks. > > > > Tom > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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