I tried installing on my system - Intel iMac OS 11.7.2 .
I followed a bunch of instructions from the togaware site, even playing
with 'brew' to install stuff.
As stated by folks below, rattle 5.5.1 still tries to get RGtk2
rolling. I also found that attempts to load the RGtk2 library as
installed from togaware leads to inconsistent responses:
[ and notice also the apparent attempt of the 4.2 directory to reference
a nonexistent 4.1 directory! WTF??? ]
Rgames> library(RGtk2)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/RGtk2/libs/RGtk2.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/RGtk2/libs/RGtk2.so,
6): Library not loaded:
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib
Referenced from:
/Library/Frameworks/R.framework/Versions/4.2/Resources/library/RGtk2/libs/RGtk2.so
Reason: image not found
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
Warning message:
Failed to load RGtk2 dynamic library, attempting to install it.
Rgames> library(RGtk2)
# no error or response from this second try
And then if I try to start rattle up:
Rgames> rattle()
Error in .C("R_gtkInit", length(args), x = args, success = logical(1), :
"R_gtkInit" not available for .C() for package "RGtk2"
I spent rather too much time reading thru the help and support pages at
togaware.com ; my conclusion is that rattle is abandonware. Those pages
clearly haven't been updated in over 5 years. 'brew' commands are
deprecated, for example.
On 2/28/23 6:00 AM, r-sig-mac-requ...@r-project.org wrote:
Package RGtk2 was archived in 2021. The current rattle (5.5.1) does not
depend on it.
Is https://rattle.togaware.com/rattle-install-mac.html not the right place
to look? It had been a few years, but Togaware used to be the right
starting point. Also searching for installing Rattle on Mac
(unsurprisingly) delivered a ton of hits, many obviously stale, but some
not so obviously so. But pkg, devel, brew ... I am observing the same
behavior (errant environment variable?)
Step 0 Downloaded R https://cran.r-project.org
There were many different attempts at step 1, the seemingly most obvious
one from togaware has instructions from 2018, so I wasn't terribly
surprised that it failed. I was surprised at the *way* it failed
Step 1 install.packages('rattle') # picked the TX mirror, as they are
physically reasonably close.
Even trying again with the install.packages("
https://access.togaware.com/RGtk2_2.20.36.2.tgz", repos=NULL) before the
rattle install, it is offering to install GTK+, and installs the wrong one.
The downloaded binary packages are in
/var/folders/n8/92rd9hwj0jq_ly7_nv2rktlw0000gn/T//RtmpZghlVY/downloaded_packages
library(rattle)
Loading required package: tibble
Loading required package: bitops
Rattle: A free graphical interface for data science with R.
*Version 5.5.1 Copyright (c) 2006-2021 Togaware Pty Ltd.*Type 'rattle()' to
shake, rattle, and roll your data.
rattle()
*Loading required package: RGtk2*Error in dyn.load(file, DLLpath = DLLpath,
...) :
So, this claims to be 5.5.1, but it does insist on RGtk2, and I'm getting
the wrong RGtk2. Obviously there must be something in my environment that
differs from yours, or the TN repository is somehow wrong..
quit R.app, and restarting...
trying your ac.at site:
R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (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.
[R.app GUI 1.79 (8160) aarch64-apple-darwin20]
[Workspace restored from /Users/khb/.RData]
[History restored from /Users/khb/.Rapp.history]
install.packages('
https://cran.wu.ac.at/bin/macosx/big-sur-arm64/contrib/4.2/rattle_5.5.1.tgz
')
inferring 'repos = NULL' from 'pkgs'
trying URL '
https://cran.wu.ac.at/bin/macosx/big-sur-arm64/contrib/4.2/rattle_5.5.1.tgz'
Content type 'application/x-gzip' length 6389382 bytes (6.1 MB)
==================================================
downloaded 6.1 MB
library(rattle)
Loading required package: tibble
Loading required package: bitops
Rattle: A free graphical interface for data science with R.
Version 5.5.1 Copyright (c) 2006-2021 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.
rattle()
Loading required package: RGtk2
Error in dyn.load(file, DLLpath = DLLpath, ...)
For me just now R 4.2.2 successfully downloaded
trying URL
'
https://cran.wu.ac.at/bin/macosx/big-sur-arm64/contrib/4.2/rattle_5.5.1.tgz
'
--
Carl Witthoft
personal: c...@witthoft.com
The Witthoft Group, Consulting
https://witthoftgroup.weebly.com/
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac