This is a test version of Biostars. For the public version, visit https://www.biostars.org.
gWidgets2RGtk2 problem for newer versions of R

I want to use tReasure tool for a scientific purpose (https://github.com/jinoklee/tReasure). However, I couldn't install it because it gave error about gWidgets2RGtk2. When I tried to install it in RStudio, it gave:

Error in library("gWidgets2RGtk2") : there is no package called ‘gWidgets2RGtk2’

Then I used,

install.packages("gWidgets2RGtk2")

But gave another error:

Warning in install.packages : package ‘gWidgets2RGtk2’ is not available for this version of R

My research says ‘gWidgets2RGtk2’ is removed in the newer versions of R, so installed older versions but still got the same error. So I am back to R version 4.4.2.

My questions is "Is there a way of installing gWidgets2RGtk2 in the R version 4.4.2?"

Ps. I am fairly new to R environment.

Thank you for your help,
Burak

data-science gwidgets2rgtk2 rstudio r

If the package does not exist for a certain R version, there is not much you can do. You can try compiling from source code (might work, but most probably not) or you can create a conda enviroment with R=4.2 and install the package there. Getting RStudio to work with a conda environment might be a bit challenging but you can give it a shot - google on how to do this, and more importantly, how to get back to using your globally installed R=4.4.2 once your processing is done.

You can still load the R package if it is not getting install by using devtools.

download the package and store in the working directory and load via:

library(devtools)

devtools::load_all("gWidgets2RGtk2")

0 answers

No answers yet.

Log in to answer this question.