Entering edit mode
26 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
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")
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.