Brian Lunergan
2021-Dec-07 00:33 UTC
[R] Puzzled about loading the Rattle interface package...
Evening folks: Hope I'm in the right place to ask this. Running R 4.1.2 on Linux Mint 19.3. I do have R Commander and R Studio in place and working, so I'm not without choices for a GUI to use R. However, I wanted to try out the Rattle interface. The package installs OK, but it apparently needs the RGtk2 package to run its graphic state. When I try to install that package I get the following:> install.packages("RGtk2")Installing package into ?/home/brian/R/x86_64-pc-linux-gnu-library/4.1? (as ?lib? is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/RGtk2_2.20.36.2.tar.gz' Content type 'application/x-gzip' length 2792234 bytes (2.7 MB) =================================================downloaded 2.7 MB * installing *source* package ?RGtk2? ... ** package ?RGtk2? successfully unpacked and MD5 sums checked ** using staged installation checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for INTROSPECTION... no checking for GTK... no configure: error: GTK version 2.8.0 required ERROR: configuration failed for package ?RGtk2? * removing ?/home/brian/R/x86_64-pc-linux-gnu-library/4.1/RGtk2? The downloaded source packages are in ?/tmp/Rtmphfaxc3/downloaded_packages? Warning message: In install.packages("RGtk2") : installation of package ?RGtk2? had non-zero exit status>I'm at a bit of a loss as to how to solve this. Any help would be appreciated. Otherwise, I guess I'd be SOL for trying it out and fall back to my existing two options. Thanks... -- Brian Lunergan Russell, ON Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20211206/c3d758ba/attachment.sig>
Eric Berger
2021-Dec-07 11:34 UTC
[R] Puzzled about loading the Rattle interface package...
Hi Brian, I have never tried Rattle but I did a quick search and found this link which might give some clues. https://book.huihoo.com/data-mining-desktop-survival-guide/Installing_GTK.html Good luck, Eric On Tue, Dec 7, 2021 at 1:29 PM Brian Lunergan <ff809 at ncf.ca> wrote:> > Evening folks: > > Hope I'm in the right place to ask this. > > Running R 4.1.2 on Linux Mint 19.3. I do have R Commander and R Studio > in place and working, so I'm not without choices for a GUI to use R. > However, I wanted to try out the Rattle interface. > > The package installs OK, but it apparently needs the RGtk2 package to > run its graphic state. When I try to install that package I get the > following: > > > install.packages("RGtk2") > Installing package into ?/home/brian/R/x86_64-pc-linux-gnu-library/4.1? > (as ?lib? is unspecified) > trying URL 'https://cloud.r-project.org/src/contrib/RGtk2_2.20.36.2.tar.gz' > Content type 'application/x-gzip' length 2792234 bytes (2.7 MB) > =================================================> downloaded 2.7 MB > > * installing *source* package ?RGtk2? ... > ** package ?RGtk2? successfully unpacked and MD5 sums checked > ** using staged installation > checking for pkg-config... /usr/bin/pkg-config > checking pkg-config is at least version 0.9.0... yes > checking for INTROSPECTION... no > checking for GTK... no > configure: error: GTK version 2.8.0 required > ERROR: configuration failed for package ?RGtk2? > * removing ?/home/brian/R/x86_64-pc-linux-gnu-library/4.1/RGtk2? > > The downloaded source packages are in > ?/tmp/Rtmphfaxc3/downloaded_packages? > Warning message: > In install.packages("RGtk2") : > installation of package ?RGtk2? had non-zero exit status > > > > I'm at a bit of a loss as to how to solve this. Any help would be > appreciated. Otherwise, I guess I'd be SOL for trying it out and fall > back to my existing two options. > > Thanks... > -- > Brian Lunergan > Russell, ON > Canada > > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Ivan Krylov
2021-Dec-07 11:44 UTC
[R] Puzzled about loading the Rattle interface package...
On Mon, 6 Dec 2021 19:33:25 -0500 Brian Lunergan <ff809 at ncf.ca> wrote:> Running R 4.1.2 on Linux Mint 19.3.> configure: error: GTK version 2.8.0 requiredThanks for mentioning your GNU/Linux distro! You need the libgtk2.0-dev APT package installed in order to build the RGtk2 R package from source. Alternatively, if you use the distro-built R (installed via APT), you can install the r-cran-rgtk2 APT package and avoid building the RGtk2 package from source. Ask in the R-SIG-Debian mailing list if your problems continue. -- Best regards, Ivan