-
-
Save BroVic/bcaceeb8afff1be3de810729bf71a48f to your computer and use it in GitHub Desktop.
install.packages("remotes") | |
remotes::install_github("BroVic/RQDAassist", ref = "apple") | |
RQDAassist::install() |
gWidgets is already installed
Installing 'gWidgetsRGtk2' ...
Downloading package from url: https://cran.r-project.org/src/contrib/Archive/gWidgetsRGtk2/gWidgetsRGtk2_0.0-86.tar.gz
- installing source package ‘gWidgetsRGtk2’ ...
** package ‘gWidgetsRGtk2’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RGtk2/libs/RGtk2.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RGtk2/libs/RGtk2.so, 6): Library not loaded: /usr/X11/lib/libXinerama.1.dylib
Referenced from: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
Please install GTK+ from http://r.research.att.com/libs/GTK_2.24.17-X11.pkg
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 dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /usr/X11/lib/libXinerama.1.dylib
Referenced from: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
In addition: Warning message:
Failed to load RGtk2 dynamic library, attempting to install it.
Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
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
Warning message:
In fun(libname, pkgname) :
Failed to load cairoDevice, attempting to install itError in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /usr/X11/lib/libXinerama.1.dylib
Referenced from: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RGtk2/libs/RGtk2.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RGtk2/libs/RGtk2.so, 6): Library not loaded: /usr/X11/lib/libXinerama.1.dylib
Referenced from: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
Warning: Failed to load RGtk2 dynamic library, attempting to install it.
Please install GTK+ from http://r.research.att.com/libs/GTK_2.24.17-X11.pkg
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 dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /usr/X11/lib/libXinerama.1.dylib
Referenced from: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
Warning in fun(libname, pkgname) :
Failed to load cairoDevice, attempting to install itError in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so, 6): Library not loaded: /usr/X11/lib/libXinerama.1.dylib
Referenced from: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Reason: image not found
Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
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 ‘gWidgetsRGtk2’:
.onAttach failed in attachNamespace() for 'gWidgetsRGtk2', details:
call: .Call(name, ..., PACKAGE = PACKAGE)
error: "S_gtk_icon_factory_new" not available for .Call() for package "RGtk2"
Error: loading failed
Execution halted
ERROR: loading failed
- removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/gWidgetsRGtk2’
Done
Installing 'RQDA' ...
Downloading package from url: https://cran.r-project.org/src/contrib/Archive/RQDA/RQDA_0.3-1.tar.gz
ERROR: dependency ‘gWidgetsRGtk2’ is not available for package ‘RQDA’ - removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RQDA’
Done
Warning messages:
1: In i.p(...) :
installation of package ‘/var/folders/l3/cz_1gk5j6bbfqrk1_k4cjm900000gn/T//Rtmp8U0xio/remotes48cf2dba1e5a/gWidgetsRGtk2’ had non-zero exit status
2: In i.p(...) :
installation of package ‘/var/folders/l3/cz_1gk5j6bbfqrk1_k4cjm900000gn/T//Rtmp8U0xio/remotes48cf640b66e4/RQDA’ had non-zero exit status
Okay, this could mean that the Gtk+ is not installed and/or seen by the system. There are 2 things you can do before we conclude that the installation failed:
- Restart R Studio (i.e. close and relaunch).
- Run
library(RGtk2)
again. If it prompts for Gtk+ to be installed again, then know that the last one failed. If it returns the prompt without any output whatsoever, GTk+ was properly installed and you can tryRQDAassist::install()
one last time.
If this fails, then I will have to review the code to see how to overcome the hurdle.
Thanks for your help so far.
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
library(gWidgets)
options(guiToolkit="RGtk2")
win <- gwindow("test")
glabel("test label", container = win)
gedit("test text field", container = win)
guiWidget of type: gEditRGtk for toolkit: guiWidgetsToolkitRGtk2
R(9523,0x7fff76be1960) malloc: *** error for object 0x4024000000000000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
Abort trap: 6
Hello are avaliable
I have like 1.30 Minute
Hpoe it is okay by you
Hi, I'm sorry I don't quite understand...
Since it's
TRUE
run this