Dependency issue with rgobbi
Prof. Wickham,
Perhaps this issue should not be directed towards clusterfly, but rather it's dependency.
I cannot get the package to load due to some inexplicable problem loading rgobbi.dll on Windows.
I posted this issue to StackOverflow and 1 other user confirmed that they have the same result.
https://stackoverflow.com/questions/30245209/cant-load-rggobi-dll-though-it-appears-to-be-available?noredirect=1#comment48606432_30245209
> pacman::p_load(caret, clusterfly, devtools, geonames, inTrees, mclust, party,
+ RDSTK, reshape, ROCR, RRF, sqldf, stringi, tree, xlsx)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.2.0/library/rggobi/libs/x64/rggobi.dll':
LoadLibrary failure: The specified path is invalid.
Failed with error: ‘package ‘rggobi’ could not be loaded’
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/clusterfly_0.4.zip'
Content type 'application/zip' length 64469 bytes (62 KB)
downloaded 62 KB
package ‘clusterfly’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\hackr\AppData\Local\Temp\RtmpopFKT2\downloaded_packages
clusterfly installed
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.2.0/library/rggobi/libs/x64/rggobi.dll':
LoadLibrary failure: The specified path is invalid.
Failed with error: ‘package ‘rggobi’ could not be loaded’
Warning message:
In pacman::p_load(caret, clusterfly, devtools, geonames, inTrees, :
Failed to install/load:
clusterfly
Thanks,
Jason
I'd recommend using install.packages("rggobi") (which I see you did on SO).
Could you please install devtools (if you haven't already) and show the results of devtools::session_info("ggobi")?
Thanks for your reply.
> require(devtools)
> devtools::session_info("ggobi")
Error in !include_base : invalid argument type
You need the latest version of devtools
Got it, thanks. OK, I'm on devtools 1.8.0.9000 now.
> devtools::session_info("ggobi")
Error in desc$Priority : $ operator is invalid for atomic vectors
In addition: Warning message:
In packageDescription(pkg) : no package 'ggobi' was found
If I assume that you meant to type rggobi, then that leads me to this:
> devtools::session_info("rggobi")
Session info ----------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.2.0 (2015-04-16)
system x86_64, mingw32
ui RStudio (0.98.1103)
language (EN)
collate English_United States.1252
tz America/New_York
Packages --------------------------------------------------------------------------------------------------------------------------------------
package * version date source
rggobi 2.1.20 2014-04-24 CRAN (R 3.2.0)
RGtk2 2.20.31 2014-07-19 CRAN (R 3.2.0)
Hmmmm, that all looks ok. @lawremi any thoughts?
I think that rggobi is not being built for 64 bit Windows, because there is no 64 bit GGobi binary, as far as I know. Try running the 32 bit version of R, if that still exists.
Thanks, OK I will give it a try and report back.
I'm not sure if this is relevant, but there is both an x64 and i386 folder within the rgobbi folder. I noticed this when trying to see if it was a permissions issue:
C:\Program Files\R\R-3.2.0\library\rggobi\libs>chmod 777 x64
C:\Program Files\R\R-3.2.0\library\rggobi\libs>chmod 777 i386
UPDATE:
Didn't work with 32-bit R
> require(clusterfly)
Loading required package: clusterfly
Loading required package: rggobi
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/hackr/Documents/R/win-library/3.2/rggobi/libs/i386/rggobi.dll':
LoadLibrary failure: The specified module could not be found.
Failed with error: ‘package ‘rggobi’ could not be loaded’