Installing Rattle on MacOS 10.11 (or above)
This article was moved to https://zhiyzuo.github.io/installation-rattle/ !
This article was moved to https://zhiyzuo.github.io/installation-rattle/ !
Thanks a million - it worked! |
I have macOS Sierra 10.12.6, and R version R version 3.4.2. At the step14. It shows some error as below: trying URL 'https://togaware.com/access/rattle_5.0.14.tar.gz'
|
Many thanks for this. Worked for me with Sierra 10.12.6 and R version 3.4.2. Enabled me to install RQDA. |
@fallsit, I have not seen an error like this. Any updates now? |
I am getting this when doing "R CMD INSTALL RGtk2_2.20.33.tar.gz" configure: error: GTK version 2.8.0 required I am on MacOS Sierra 10.12.6, R version is 3.4.2 |
@foohm71. Can you do a |
Not sure if these could cause issues: Warning: Unbrewed dylibs were found in /usr/local/lib. Unexpected dylibs: Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. Unexpected .pc files: Warning: Unbrewed static libraries were found in /usr/local/lib. Unexpected static libraries: |
I am on MacOS Sierra 10.12.6 and have R version 3.4.2. R session is headless; GTK+ not initialized. |
@foohm71 Can you find |
@uiang what did you run to get this error? |
One important point might be the removal of gtk+ with brew uninstall. Because if you already have gtk+ on your system, brew will ignore your attempt. If that's the case use;
p.s. Amazing tutorial btw. |
That's fantastic tutorial, I spent hours to install |
Thanks a million - it worked!!!! |
Hello, great tutorial, thanks for sharing. I am having an issue at step 7 and I am unable to install
|
Hello! It shows the error below when I did this ~/Downloads$ R CMD INSTALL RGtk2_2.20.33.tar.gz:
Any idea on how to solve this problem? Thanks in advance!! ps: very helpful tutorial! Thanks a lot! |
@jingyuzheng, it seems like you did not install gtk+ successfully |
Thank you so much for this tutorial. Do you know why I'd be getting this error, when I attempt your Step 11? Thank you again.
|
Thank you, I used your tips as well as |
Great help thx @zhiyzuo brew uninstall gtk+ --ignore-dependencies |
Thanks for the tutorial, this works for me. |
Thank you so, so much for this tutorial. It made all the difference in being able to move forward on this issue. I am almost there. I was able to get all the way through the end and Rattle did open from XQuartz. However, I tried to then open Rattle from R Studio and I'm getting stuck on a similar error as @uiang. I am wondering if anyone figured out how to get around it. I am running the following:
So when I use the XQuartz Terminal, I type library(rattle) and then rattle(), and Rattle opens.
(Rattle opens) But when I use the R Terminal, I try the same thing and this is what I get
And when I use R Studio, I try the same thing and this is what I get:
I tried reinstalling RGtk2 in the Terminal and noticed I am getting this at the end of the install:
Thanks in advance for any advice. |
@mindexplore. |
@zhiyzuo I'll try it! I appreciate your reply. OK, just tried it by closing everything and then, did the following in this order: Unfortunately, I got the same output:
|
@mindexplore How about loading the package RGtk2 in XQuartz and then tried to open rattle in RStudio? I remembered that the way I tested was similar to make rattle run in RStudio but did not remember clearly. Basically I tried to get GTK work since RStudio somehow was unable to do this. |
I met a problem similar to mindexplore. In the step 15, when I type "library (cattle)" It showed (R:88432): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()" I don't know how to solve this problem. |
@uiang Did you get a solution to your problem? Seems like I have run into a similar problem. I'm using Mac OS High Sierra 10.13.2 and have R 3.4.1. I run into the following issue, after trying to install RGtk2 using the following command $ R CMD INSTALL ~/Downloads/RGtk2_2.20.34.tar.gz installing to /Library/Frameworks/R.framework/Versions/3.4/Resources/library/RGtk2/libs Error: package or namespace load failed for ‘RGtk2’: removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/RGtk2’ Any pointers on this would be helpful. |
@zhiyzuo That seems to have done the trick! Thank you so much. |
Thanks for your tutorial. I really appreciate it. I am having the same problem when I try to load RGtk2 from the ~/Downloads folder. Some things I have tried:I checked and I do have gtk+ in my local/cellar folder. I also checked my .bash_profile and it looks like the path is in there. I also tried to load the source file from Xquartz with no luck. I'm not really sure what to do. Here's my error just in case:
Can you elaborate @mindexplore about how you loaded the package in XQuarts. I tried and it still didn't work. |
First of all thank you very much for this tutorial. I'm struggling on the launch of rattle just by itself. here is the result I get when I try tu use rattle in rstudio :
Like you told another user here I tried to first load RGtk2 in the xquartz terminal but it does't seem to work. Do you have any idea on this ? |
@zhiyzuo, thanks for you efforts in presenting this tutorial. At Step 7, when applying |
does anyone have any idea what the issue is with this load error for RGtk2? sessionInfo is here:
|
@cratzdo The most recent commit to cairo.rb removed the |
@jamesmnw for(i in 1:1000000){print("THANKS")} That hidden error in the cairo build of ignoring the -x11 flag caused me days of grief. Thanks for pointing that out. Your edit worked perfectly, allowing the rest of the instructions to work. I can now Rattle and RQDA and the world is a better place. :-) |
@milti, follow @jamesmnw's advice and make sure to |
Thanks for your detailed advice. But it is still frustrating for me. |
The key to success for me was to use @jamesmnw advice and edit the configuration file for cairo using the formula supplied in his post and build. After that gtk+ build without errors. I could then just follow the instructions to install RGtk2 and cairodevice + rattle. To bad they messed up Homebrews version of cairo and caused all these problems |
Hello, |
What is the solution to the below?
As directed the version of GTK I manage to install is 2.24.32_2. But for RGtk2 it needs 2.8.0? Could you elaborate on the exact steps to perform to achieve this please? |
As I just pointed out in a comment under @zhiyzuo's post (https://zhiyzuo.github.io/installation-rattle/#comment-3944233914), the whole thing can be simplified to this: system('brew install gtk+')
local({
if (Sys.info()[['sysname']] != 'Darwin') return()
.Platform$pkgType = 'mac.binary.el-capitan'
unlockBinding('.Platform', baseenv())
assign('.Platform', .Platform, 'package:base')
lockBinding('.Platform', baseenv())
options(
pkgType = 'both', install.packages.compile.from.source = 'always',
repos = 'https://macos.rbind.org'
)
})
install.packages(c('RGtk2', 'cairoDevice', 'rattle')) No more struggling with editing the |
thx,it work! |
I encountered same problem. Did you solve it? |
This comment has been minimized.
I have OS 10.11.4 running on a 2014 iMac, and R 3.4.1. This process breaks for me at step 9 with "Error: gtk+ 2.24.31 did not build"
Has something changed in the past few weeks, or am I doing something wrong?
UPDATE: It looks like I needed to reinstall Xquartz. I did that, the installation went fine (and took a lot longer), and everything seems to work now. Thanks for posting these instructions!