davidcsterratt / retistruct

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

Windows 12 and R 4+ installation #55

Open domhoek opened 1 year ago

domhoek commented 1 year ago

I tried to install Retistruct on my Windows PC following the User manual and instructions here - but I was unable to install it. I installed several R versions (3.5 to 4.3) and older and latest RTools, but none of the devtools commands worked.

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

Mostly received compilation errors. Any ideas? Sorry I am not an R expert. Thanks!

davidcsterratt commented 1 year ago

Sigh! I'm sorry about this. The RGtk package now seems to be well and truly broken on Windows, and I'm coming to the conclusion that I'm going to have to build a new interface in a package called Shiny. For now, all I can advise is to install a Linux Virtual machine in and run R and Retistruct in it. I should update the docs...

domhoek commented 1 year ago

Thank you! I'll try on Ubuntu virtual machine. Otherwise, the examples are working (exept Figure6) because the dataset was not in this path: root <- system.file(package = "retistructdemos")
instead of I used this: root <- system.file(package = "retistruct")

Now demos and scripting work well, 3D interface as well. If I well understand everything is working except the GUI.

Thank you for keep this project alive, amazing work.

domhoek commented 1 year ago

Good news: From Ubuntu 22.04 and Virtual Box it's working properly. Just some notes:

  1. You need to set 2 cores on VM instead of 1.
  2. The only method for devtools install was that: https://zoomadmin.com/HowToInstall/UbuntuPackage/r-cran-devtools
  3. For GUI install, Github lines worked well from Github page.