自RQDA软件包存档以来的安装问题,于20/05/2020

问题描述 投票:1回答:1

在Windows 10上安装RQDA时收到错误。我已经成功运行RQDA,然后无法加载程序包,因此我删除并尝试按照以下说明重新安装RQDA:http://rqda.r-forge.r-project.org/。从那时起,我收到指向RGtk2和GTK +的错误消息。我尝试使用R和RStudio的最新和较旧版本加载RQDA。我在3台不同的Windows计算机上尝试过。

这里是显示RQDA软件包最近被归档的链接:https://cran.r-project.org/web/packages/RQDA/index.html归档文件指向需要gWidget的位置,因此我确保gWidgets的库可以成功加载,并且库(gWidgetsRGtk2)可以成功加载。我也很注意为R 4.0.0(https://cran.r-project.org/bin/windows/Rtools/)安装RTools4.0。

我确保GTK +在我的PATH上。 (路径:%GTK_BASEPATH%\ bin;)(GTK_PATH:C:\ GTK)。

我还尝试过手动加载RQDA和依赖项,但这是一个永无止境的过程。

这是我收到的错误:

Failed to load RGtk2 dynamic library, attempting to install it. 
Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error in getOption("encoding") : Knotenstack-Überlauf
Zusätzlich: Warnmeldung:
Failed to load RGtk2 dynamic library, attempting to install it. 
Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error: package or namespace load failed for 'RGtk2':
 .onLoad in loadNamespace() für 'RGtk2' fehlgeschlagen, Details:
  Aufruf: NULL
  Fehler: Knotenstack-Überlauf
Fehler: Paket 'RGtk2' konnte nicht geladen werden
Zusätzlich: Warnmeldung:
Failed to load RGtk2 dynamic library, attempting to install it. 
Ausführung angehalten
ERROR: lazy loading failed for package 'RQDA'
* removing 'C:/Users/haunschild/Documents/R/win-library/4.0/RQDA'
Warning in install.packages :
  installation of package ‘RQDA_0.3-1.tar.gz’ had non-zero exit status

尝试安装RGtk2,我收到以下信息:

Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  kann shared object 'C:/Users/haunschild/Documents/R/win-library/4.0/RGtk2/libs/x64/RGtk2.dll' nicht laden:
  LoadLibrary failure:  %1 ist keine zulässige Win32-Anwendung.

versuche URL 'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip'
Content type 'application/zip' length 25830230 bytes (24.6 MB)
downloaded 24.6 MB

Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Lade nötiges Paket: cairoDevice
Warnmeldungen:
1: Failed to load RGtk2 dynamic library, attempting to install it. 
2: In dir.create(config_path, recursive = TRUE) :
  'C:\Users\haunschild\Documents\R\win-library\4.0\RGtk2\gtk\x64\etc\gtk-2.0' existiert bereits
> detach("package:RGtk2", unload = TRUE)
Fehler: Paket ‘RGtk2’ wird von ‘gWidgetsRGtk2’ benötigt, wird deshalb nicht detached ("Is needed by gWidgetsRGTk2', is therefore not detached")
> library(RGtk2)

我也尝试过:

pkgFile <- "RQDA_0.3-1.tar.gz"
download.file(url = url, destfile = pkgFile)

# Install dependencies

install.packages(c("DBI","RSQLite","RGtk2","gWidgets","gWidgetsRGtk2"))

# Install package
install.packages(pkgs=pkgFile, type="source", repos=NULL)

# Delete package tarball
unlink(pkgFile)

收到了相同的RGTk2错误循环。

任何帮助将不胜感激!谢谢!

r gtk archive rqda rgtk2
1个回答
0
投票

我们一直在:https://github.com/Ronggui/RQDA/issues/38讨论此问题。有些人报告说安装成功,并给出了如何执行的反馈。Somo贡献者正在努力将RQDA移植到gWidgets2。可能是他们的解决方案之一为您服务。祝你好运。

© www.soinside.com 2019 - 2024. All rights reserved.