我正在尝试使用clusterfly哪种依赖rggobi.
我加载clusterfly并收到此错误:
> 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
Run Code Online (Sandbox Code Playgroud)
这似乎基本上说它rggobi.dll不在它应该的位置.
所以,我尝试直接安装和加载rgobbi并得到相同的错误:
> install.packages("rggobi")
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rggobi_2.1.20.zip'
Content type 'application/zip' length 422326 bytes (412 KB)
downloaded 412 KB
package ‘rggobi’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\hackr\AppData\Local\Temp\RtmpopFKT2\downloaded_packages
> require(rggobi)
Loading required package: rggobi
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.
Run Code Online (Sandbox Code Playgroud)
我发现这很奇怪,所以我在Windows资源管理器中查看,该文件rggobi.dll正好在它应该是的位置:

在尝试加载它之后,我的下一个想法是可能存在某种文件权限问题.所以,从rggobi文件夹开始,我chmod 777设置最大权限.
我仍然无法加载包,我重复了每个后续文件夹级别的过程chmod 777和尝试require(gobbi),直接在rggobi.dll:
C:\Program Files\R\R-3.2.0\library>chmod 777 rggobi
C:\Program Files\R\R-3.2.0\library>cd rggobi
C:\Program Files\R\R-3.2.0\library\rggobi>ls
DESCRIPTION LICENSE Meta NEWS data help libs
INDEX MD5 NAMESPACE R demo html
C:\Program Files\R\R-3.2.0\library\rggobi>chmod 777 libs
C:\Program Files\R\R-3.2.0\library\rggobi>cd libs
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
C:\Program Files\R\R-3.2.0\library\rggobi\libs>cd x64
C:\Program Files\R\R-3.2.0\library\rggobi\libs\x64>ls
rggobi.dll symbols.rds
C:\Program Files\R\R-3.2.0\library\rggobi\libs\x64>chmod 777 rggobi.dll
Run Code Online (Sandbox Code Playgroud)
最后,在Github上打开一个问题之后,Hadley Wickham推迟到了一个建议尝试32位R 的lawremi,但这也导致了相同的结果.
如何让这个dll /包可用于R?
小智 3
我的解决方案是按照此处的以下说明进行操作
如果您还想安装 rggobi,则可以使用以下命令从 R 中安装所有内容:
source("http://www.ggobi.org/downloads/install.r")