-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RGtk2 trouble #4
Comments
Hi, thanks to your report, I just noticed that RGtk2 has recently been archived on CRAN. I will provide an update to the package to take care of this development. Cheers. |
Ref this issue. Let us see if the RGtk2 archiving is resolved. In the meantime, I will work on a fix, but the way forward seems to be building RGtk2 from source. This is no trivial task because of the dependencies that have to be pre-installed. |
Okay, I have additional information. RQDA itself will no longer be maintained by the package author as stated in this commit. Likewise, this fork has effectively been retired. Unless something still happens at CRAN, this is likely the end of the road. |
Hi, I am having same trouble installing RQDA. Is there any workaround that works or should we just give up? are you aware of any other R package for qualitative analysis? |
@mauriziopassariello |
Quick announcement: I've been able to work around the issue, having successfully built RGtk2 on Windows. I will articulate this as a function later in the day (I'm in GMT+1) and provide details on the approach used. |
@BroVic any news about this? I forgot to mention I am using a Mac or Rstudio Cloud... I'd really need to use RQDA now! |
@mauriziopassariello I've just applied a fix but for now it's likely to work on Windows. I don't own a Mac but I can dig around a little and see how you can go about it. |
Try this:
This version of Gtk is the one that correctly matches the archived version of RGtk2 (as stated beginning line 79 of this file). If the installation works, you have to wait for quite some time for the package to compile. This is the best I can give as I only have experience with Windows and Linux - if you know how to compile code and how |
Thanks!
I’ve trie on rstudio cloud and I get an error. Maybe this is not supposed to work on the cloud anyway. I’ll try later on my Mac when I get home.
On 6 Jan 2022, at 12:24, Victor Ordu ***@***.***> wrote:
@mauriziopassariello<https://github.com/mauriziopassariello>
Try this:
1. Get the Gtk+ distribution from http://r.research.att.com/libs/GTK_2.24.17-X11.pkg.
2. Install RGtk2 using this
# install.packages("remotes")
remotes::install_version("RGtk2", "2.20.36", upgrade = "never", build = TRUE, repos = "https://cran.r-project.org", INSTALL_opts = "--no-multiarch")
This version of Gtk is the one that correctly matches the archived version of RGtk2 (as stated beginning line 79 of this file<https://github.com/lawremi/RGtk2/blob/master/RGtk2/R/zzz.R>).
If the installation works, you have to wait for quite some time for the package to compile. This is the best I can give as I only have experience with Windows and Linux - if you know how to compile code and how PATH works on your machine you should be able to solve it. For additional clues on installing this package on Mac, you can also consult the README at https://github.com/RQDA/RQDA/blob/main/README.md.
—
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATJVX4VTRLBQDC7YDX6XIXDUUWCWZANCNFSM5K7RFI3Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
No, it's highly unlikely that you would be able to do this on the cloud unless you use configuration scripts to ensure the availability of the dependencies. However, I think with containerized environments this could be done, but I'm not sure how to go about that at the moment. |
@BroVic
|
@mauriziopassariello The next thing you have to ensure is that the compiler will see the GTK so that the library headers and binaries can be statically linked to build RGtk2. How exactly to do that on Mac, I can't tell you. |
The original issue has been resolved, so I am closing this. I will, however, work to automate this process on Mac as well. |
It worked for me. Thank you! |
Thanks Victor. I’m afraid I need a bit more guidance to make it work on my Mac. When you talk about statical links etc…. I understand my IT competency is limited!
If you have time and you identify how this may be installed on a Mac I’d be hugely grateful as I’d love to use an open source programme instead of commercial software.
Thanks again for all your help.
Kind regards,
Maurizio
On 11 Jan 2022, at 18:26, Victor Ordu ***@***.***> wrote:
The original issue has been resolved, so I am closing this. I will, however, work to automate this process on Mac as well.
—
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATJVX4UGFQWX5PRD4ED4KN3UVRY4XANCNFSM5K7RFI3Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sure, I've asked a friend to lend me their Mac next weekend. Hopefully after that I will have some answers for you. |
@martin-hajek Excellent news. Thank you! |
Try installing RGtk2 for Mac using this code:
Source: Rattle homepage |
Thanks. Some good news for me. I managed to install RGtk2 without issues. Then I ran the RQDA assistant but got the following error (after it ran for several minutes without complaints): make: gfortran: No such file or directory
The downloaded source packages are in
What do you think the issue is? How ccan I proceed now? Thanks, Maurizio |
Okay @mauriziopassariello I thought I stated that RQDAassist does not currently support Mac (but it will soon). Now that you've installed RGtk2, try this:
Please note that I'm doing this on mobile, so I couldn't actually test this code. |
Thank you ever so much for helping out. I think I'm close to have it installed but not as yet! This is what happened:
It looks like there is a typo somewhere but I can't figure it out! This is the error:
Error: unexpected ',' in " repos = "https://cran.r-project.org","
Error: unexpected ')' in " )"
|
@mauriziopassariello yea, I'm sorry there is a typo. Place a comma after |
Argh still nothing! Although pkg-config is in the list of packages and ticked. Downloading package from url: https://cran.r-project.org/src/contrib/Archive/cairoDevice/cairoDevice_2.28.2.tar.gz
|
@mauriziopassariello indeed, this is because cairoDevice needs GTK if it is to be built from source. And that was where you had the original problem. So, just like you did with RGtk2, you can try to install the binaries instead. I did a little poking around on the Microsoft CRAN mirror and got this link you can try. Run
If it succeeds, remove cairoDevice from the last code I sent you, and run it again. I expect it to work this time. |
Okay, try this:
Let's see if this works. Sorry that I'm not very proficient on Mac. |
@BroVic |
You need a particular version of Gtk. On Linux (Ubundu/Debian) one would do this: $ sudo apt update
$ sudo apt install -y libgtk2.0-dev
I don't know how to do this on Mac, but an internet search led me to this document and this one. I would favour this one from the second link: $ sudo port install pkgconfig
$ sudo port install gtk2 |
This is all very frustrating. I am now sure I have installed both GTK and RGTK2. However, when I install the rest I get stuck and I get the error that I don't have GTK. Should GTK appear in my packages? Do I have. to load anything with library()? Please install GTK+ from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg |
Is GTK+ on your PATH? Yes, it's frustrating, but take solace in the fact that you're learning new things along the way. Somebody once wrote to me that when they ran |
Is GTK+ on your PATH? How can I make sure this happens? How do I set GTK+ on the PATH?
I feel I’m close to succeeding…
… On 18 Jan 2022, at 21:48, Victor Ordu ***@***.***> wrote:
Is GTK+ on your PATH?
|
I don't know how it's done on Mac, but I'm sure an internet search should lead you to an article on that. PATH is what enables applications to be found from anywhere on your computer. So, if RGtk2 depends on GTK, it has to see it before it can use it. On Windows, the installed RGtk2 package actually has a folder called 'gtk' where the entire GTK distribution is copied into and that's how it's able to use it. On Linux it's not like that, as it depends on PATH to make GTK available, and since Mac is a Unix-like system, I should expect it to be somewhat similar. It's almost midnight where I am, so if you have other questions I may not respond till tomorrow morning my time 😊 |
@BroVic |
Do you remember how you installed GTK? With that info I can at least do a search for a possible solution. |
@BroVic |
If you installed GTK via that prompt, then you ought to have it. If you're still unable to install gWidgetsRGtk2 and RQDA, using the code I sent you, here's what I would do:
If you don't know how to conduct these checks on a Mac; you will have to search the web. For example, I found this link Also, if you still have an error, restart R, reproduce the error, run |
I too have a problem installing RGtk2. I tried different ways to install it but all failed
|
Hi, the installation skipped the step where GTK is set up, and I wonder why. Please restart and reproduce the error - then run |
Thank you. Here is it:
|
Seen. I will get back to you on this a little later. |
Please reinstall this package, as I've just published an update that should take care of the issue you have. You could set |
Thank you! I reinstalled it and tried it (three times) but I still have the same problem |
Okay, try running this code and if successful run the function again to install RQDA and it's other dependencies.
Clarification: This will download RGtk2 binaries on storage at MRAN (Microsoft). If it installs, you need to run |
Also, @seltheol, please do me a favour and share your last error messages, for diagnostics. |
Sadly it still won´t install cairoDevice: `> install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos=NULL) package ‘RGtk2’ successfully unpacked and MD5 sums checked
versuche URL 'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip' Learn more about GTK+ at http://www.gtk.org
` |
Not to worry, I'm not all that surprised. Now install cairoDevice with this code
After this, you should be good to go to complete the rest of the installation. |
It worked perfectly! Thank you very much! |
Bitte! |
|
This is the error i am getting |
Please restart R, reproduce the error, and post the output of |
Hi There, I am trying to install the RGtk2 in a docker but I get this error. Any help really appreciated!
|
Hello, @roohy466 The package has only been properly tested on Windows, but I will investigate this. Please send the output of |
|
When I try your assistant in Win10, I get the message:
However, I am unable to install 'RGtk2' myself. If I install it from old sources I get the error:
Package 'RGtk2' was installed before R 4.0.0: please re-install it.
How to install 'RGtk2' on R 4.1.2 in Win10 (using RStudio) to get the RQDAassist work?
The text was updated successfully, but these errors were encountered: