gpt4 book ai didi

r - 尽管 rggobi.dll 似乎可用,但无法加载

转载 作者:行者123 更新时间:2023-12-02 16:55:22 28 4
gpt4 key购买 nike

我正在尝试使用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

这似乎基本上是说 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.

我觉得这很奇怪,所以我查看了 Windows 资源管理器和文件 rggobi.dll就在它应该在的地方:

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

最后,在 Github 上提出问题后,Hadley Wickham 推迟了 lawremi ,他建议尝试 32 位 R,但这也导致了相同的结果。

如何使该 dll/包可供 R 使用?

最佳答案

我的解决方案是按照 here 中的以下说明进行操作

If you also want to install rggobi, you can install everything from within R, with the following command: source("http://www.ggobi.org/downloads/install.r")

关于r - 尽管 rggobi.dll 似乎可用,但无法加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30245209/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com