davidcsterratt / retistruct

Computational reconstruction and transformation of flattened retinae
http://davidcsterratt.github.io/retistruct/
7 stars 7 forks source link

Retistruct GUI no longer works in R 4.2.0 #52

Open davidcsterratt opened 2 years ago

davidcsterratt commented 2 years ago

Although it is still possible to install the retistruct package, it is no longer possible to start the GUI with retistruct(), because the gWidgetsRGtk2, cairoDevice and RGtk2 have been removed from CRAN.

I am in discussion with the maintainers of these packages to see if there is any way of getting them back on CRAN.

In the meantime, I have managed to work around this problem for Linux, but I need to finalise the instructions for doing this. I will think about how to work around the issue for Windows and Mac.

davidcsterratt commented 1 year ago

It looks like it's going to be hard to get these packages back on CRAN. The solution (for now) is to try installing them from github using devtools::install_github(). The packages required are:

joeholden commented 1 year ago

Running the following lines in R version 3.4.2 with Rtools35 downloaded solves the issue. It uses a Microsoft image of the CRAN from 2019 to download RETISTRUCT and its dependencies as if it were still 2019. retistruct_from_image.txt

davidcsterratt commented 1 year ago

The following should work to install the packages no longer on CRAN on Linux:

devtools::install_github("https://github.com/lawremi/RGtk2", subdir="RGtk2")
devtools::install_github("https://github.com/lawremi/cairoDevice")
devtools::install_github("https://github.com/jverzani/gWidgets2RGtk2")