Re: [R] Puzzled about loading the Rattle interface package...
On 2021-12-07 6:44 a.m., Ivan Krylov wrote: > On Mon, 6 Dec 2021 19:33:25 -0500 > Brian Lunergan wrote: > >> Running R 4.1.2 on Linux Mint 19.3. > >> configure: error: GTK version 2.8.0 required > > Thanks 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 sour Thanks for the note. First step was: sudo apt-get install libgtk2.0-dev Requested pkg plus a couple of suggestions installed just fine. Then fired up R and hit it with: install.packages("RGtk2") Request worked just fine. Final moves: library(rattle) rattle() And up pops the interface. I now have 3 well functioning choices for a GUI for R. Thanks again for the assist. -- Brian Lunergan Russell, ON Canada OpenPGP_signature Description: OpenPGP digital signature __ R-help@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.
Re: [R] Handling dependencies on Bioconductor packages for packages on CRAN
One possibility is to make graph a Suggests: dependency, and preface any code using it (or, e.g., in an .onLoad function) with if (!requireNamespace("graph", quietly = TRUE)) stop( "install the Bioconductor 'graph' package using these commands\n\n", ## standard Bioconductor package installation instructions " if (!requireNamespace('BiocManager', quiety = TRUE))\n", "install.packages('BiocManager')\n", " BiocManager::install('graph')\n\n" ) Use graph:: for any function used in the graph package. The code could be simplified if BiocManager were an Imports: dependency of your package -- it would already be installed. The 'Suggests:' dependency would not cause problems with CRAN, because Suggest'ed packages are available when the package is built / checked. The user experience of package installation would be 'non-standard' (didn't I just install gRbase??), so this is not an ideal solution. Martin On 12/4/21, 10:55 AM, "R-help on behalf of Søren Højsgaard" wrote: Dear all My gRbase package imports the packages from Bioconductor: graph, RBGL and Rgraphviz If these packages are not installed, then gRbase can not be installed. The error message is: ERROR: dependency ‘graph’ is not available for package ‘gRbase’ If I, prior to installation, run setRepositories and highlight 'BioC software', then gRbase installs as it should, because the graph package from Bioconductor is installed along with it. However, this extra step is an obstacle to many users of the package which means that either people do not use the package or people ask questions about this issue on stack overflow, R-help, by email to me etc. It is not a problem to get the package on CRAN because, I guess, the CRAN check machines already have the three bioconductor packages installed. Therefore, I wonder if there is a way of specifying, in the DESCRIPTION file or elsewhere, that these packages should be installed automatically from bioconductor. An alternative would be if one could force the error message ERROR: dependency ‘graph’ is not available for package ‘gRbase’ to be accompanied by a message about what the user then should do. Any good suggestions? Thanks in advance. Best regards Søren [[alternative HTML version deleted]] __ R-help@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. __ R-help@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.
Re: [R] Puzzled about loading the Rattle interface package...
On Mon, 6 Dec 2021 19:33:25 -0500 Brian Lunergan wrote: > Running R 4.1.2 on Linux Mint 19.3. > configure: error: GTK version 2.8.0 required Thanks 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 __ R-help@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.
Re: [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 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@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. __ R-help@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.
[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 OpenPGP_signature Description: OpenPGP digital signature __ R-help@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.