Hello,
I am trying to load Rattle on my R that's installed on iOS Big Sur. I searched on several websites for the GTK+ package, as R tried to extract the package from AT&T. I found another source for this package, however, that link advised that this package "is not available for this version of R".
First, I type the code:
install.packages('rattle')
Response:
trying URL 'https /cran. rstudio. com/bin /macosx /contrib/4.0/rattle_5.4.0. tgz' Content type 'application/x-gzip' length 5476592 bytes (5.2 MB) ================================================== downloaded 5.2 MB The downloaded binary packages are in /var/folders/pt/83w4mbc949d87d7478d2b1kc0000gn/T//RtmpW24nYo/downloaded_packages
My code:
library('rattle')
Response:
Loading required package: tibble Loading required package: bitops Rattle: A free graphical interface for data science with R. Version 5.4.0 Copyright (c) 2006-2020 Togaware Pty Ltd. Type 'rattle()' to shake, rattle, and roll your data.
Code:
Rattle()
Response:
Loading required package: RGtk2 Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/Library/Frameworks/R. framework/Versions/4.0/Resources /library/ RGtk2/libs/ RGtk2. so': dlopen(/Library/Frameworks/R.framework/Versions/4.0/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 Need GTK+ ? (Restart R after installing)
1: Install GTK+
2: Do not install GTK+
Code:
1
Response:
trying URL 'http /r.research. att. co m/libs/GTK_2.24.17-X11. p kg' Error: package or namespace load failed for ‘RGtk2’: .onLoad failed in loadNamespace() for 'RGtk2', details: call: download.file(dep_url, path, mode = "wb") error: cannot open URL 'http
/r. research. att.c om/libs/GTK_2.24.17-X11. pkg' Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RGtk2/libs/RGtk2.so': dlopen(/Library/Frameworks/R.framework/Versions/4.0/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 In addition: Warning messages: 1: Failed to load RGtk2 dynamic library, attempting to install it. 2: In doTryCatch(return(expr), name, parentenv, handler) : unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so': dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/modules/R_X11.so Reason: image not found 3: In download.file(dep_url, path, mode = "wb") : cannot open URL 'htt p:/ /r.research.att .c om/libs/GTK_2.24.17-X11.
pkg': HTTP status was '404 Not Found' Need GTK+ ? (Restart R after installing)
1: Install GTK+
2: Do not install GTK+
Code:
1
Response:
trying URL 'http: //r. research.at t. co m/libs/GTK_2.24.17-X11.pkg' Error: .onLoad failed in loadNamespace() for 'RGtk2', details: call: download.file(dep_url, path, mode = "wb") error: cannot open URL 'http://r. res earch.att. com/libs/GTK_2.24.17-X11 . pkg' In addition: Warning messages: 1: Failed to load RGtk2 dynamic library, attempting to install it. 2: In download.file(dep_url, path, mode = "wb") : cannot open URL 'htt p: //r.research. att. co m/libs/GTK_2.24.17-X11.pkg': HTTP status was '404 Not Found'
I have tried other websites in search of GTK+ with no luck. Can anyone assist me with this please?
Thank you in advance!