-
-
Save BroVic/bcaceeb8afff1be3de810729bf71a48f to your computer and use it in GitHub Desktop.
install.packages("remotes") | |
remotes::install_github("BroVic/RQDAassist", ref = "apple") | |
RQDAassist::install() |
obroma
commented
Apr 19, 2022
There was a typo on line 3. I have made the change.
RQDAassist::install()
This installation may take some time. Continue (Y/N)?
Error: Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE)
to diagnose the problem.
Hi @obroma
Please run this code. It will run some diagnostics -- kindly copy and paste the output for me to inspect right here.
pkgbuild::check_build_tools(debug = TRUE)
Your system is ready to build packages!
Okay, will make one small adjustment and let you know via email when to try again. Note that the script above has changed, so you need to copy it again. Thanks.
I RAN THE SCOND LINE IT GAVE THIS
Downloading GitHub repo BroVic/RQDAassist@apple
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: ps (1.6.0 -> 1.7.0) [CRAN]
5: pdftools (3.1.1 -> 3.2.0) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
R version 4.1.3 (2022-03-10) -- "One Push-Up"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Workspace loaded from ~/.RData]
remotes::install_github("BroVic/RQDAassist", ref = "apple")
Downloading GitHub repo BroVic/RQDAassist@apple
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: ps (1.6.0 -> 1.7.0) [CRAN]
5: pdftools (3.1.1 -> 3.2.0) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
✓ checking for file ‘/private/var/folders/l3/cz_1gk5j6bbfqrk1_k4cjm900000gn/T/Rtmp8U0xio/remotes48cf34bc7b37/BroVic-RQDAassist-8b880b2/DESCRIPTION’ (445ms)
─ preparing ‘RQDAassist’:
✓ checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted ‘LazyData’ from DESCRIPTION
─ building ‘RQDAassist_0.5.0.9002.tar.gz’
- installing source package ‘RQDAassist’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path - DONE (RQDAassist)
RQDAassist::install()
This installation may take some time. Continue (yes/no)? yes
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/igraph_1.3.1.tgz'
Content type 'application/x-gzip' length 7516885 bytes (7.2 MB)
==================================================
downloaded 7.2 MB
The downloaded binary packages are in
/var/folders/l3/cz_1gk5j6bbfqrk1_k4cjm900000gn/T//Rtmp8U0xio/downloaded_packages
trying URL 'https://cran.microsoft.com/snapshot/2021-12-15/bin/macosx/contrib/4.1/RGtk2_2.20.36.2.tgz'
Content type 'application/octet-stream' length 20629658 bytes (19.7 MB)
downloaded 19.7 MB
trying URL 'https://cran.microsoft.com/snapshot/2021-12-15/bin/macosx/contrib/4.1/cairoDevice_2.28.2.1.tgz'
Content type 'application/octet-stream' length 3268731 bytes (3.1 MB)
downloaded 3.1 MB
Installing 'gWidgets' ...
Downloading package from url: https://cran.r-project.org/src/contrib/Archive/gWidgets/gWidgets_0.0-54.2.tar.gz
- installing source package ‘gWidgets’ ...
** package ‘gWidgets’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path - DONE (gWidgets)
Done
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: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RGtk2/libs/RGtk2.so
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: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so
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: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so
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: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RGtk2/libs/RGtk2.so
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: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so
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: /Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/cairoDevice/libs/cairoDevice.so
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: RGtk2 has been installed but still needs Gtk+ to run correctly.Run 'library(RGtk2)' and follow the prompt to install Gtk+.Then, run 'RQDAassist::install' again to complete the installation.
2: In i.p(...) :
installation of package ‘/var/folders/l3/cz_1gk5j6bbfqrk1_k4cjm900000gn/T//Rtmp8U0xio/remotes48cf70c1a06a/gWidgetsRGtk2’ had non-zero exit status
3: In i.p(...) :
installation of package ‘/var/folders/l3/cz_1gk5j6bbfqrk1_k4cjm900000gn/T//Rtmp8U0xio/remotes48cf6ce13740/RQDA’ had non-zero exit status
Run this:
"RGtk2" %in% .packages(all.available = TRUE)
Since it's TRUE
run this
library(RGtk2)
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...