gWidgets2RGtk2 problem for newer versions of R
0
0
Entering edit mode
21 days ago
burak • 0

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 • 332 views
ADD COMMENT
1
Entering edit mode

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")

ADD REPLY
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 1307 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6