davidcsterratt / retistruct

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

gWidgetsRGtk2 warning #8

Closed briancohn closed 8 years ago

briancohn commented 8 years ago

After running

install.packages('retistruct')

In R 3.3.1 (2016-06-21)

When I run retistruct::retistruct() I get a message about gWidgets not being available on CRAN:

Loading required package: gWidgetsRGtk2
Trying to install required package gWidgetsRGtk2
also installing the dependencies ‘RGtk2’, ‘gWidgets’, ‘cairoDevice’

trying URL 'https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/RGtk2_2.20.31.tgz'
Content type 'application/x-gzip' length 17418280 bytes (16.6 MB)
==================================================
downloaded 16.6 MB

trying URL 'https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/gWidgets_0.0-54.tgz'
Content type 'application/x-gzip' length 1171239 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

trying URL 'https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/cairoDevice_2.23.tgz'
Content type 'application/x-gzip' length 2448530 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

trying URL 'https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/gWidgetsRGtk2_0.0-83.tgz'
Content type 'application/x-gzip' length 816840 bytes (797 KB)
==================================================
downloaded 797 KB

The downloaded binary packages are in
    /var/folders/6n/rtq6r15173l00rj8xyz_p41w0000gn/T//RtmpaNxgBh/downloaded_packages
Loading required package: gWidgetsRGtk2
Loading required package: RGtk2
Loading required package: gWidgets
Loading required package: cairoDevice
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘gWidgetsRGtk2’
  1. What's the right way to move forward from here?
  2. Does this affect current/future operation of retistruct?

Thanks so much David! -Brian

davidcsterratt commented 8 years ago

Hmm... This is a bit tricky to diagnose, as I don't have a Mac. There are problems getting GTK binaries for Mac; see #4 for a summary of how to deal with this. I'd suggest as a first course of action, closing R, then opening it again and trying retistruct::retistruct() again. Then look at the ways forward in #4.

gWidgets is still on CRAN, so there shouldn't be a problem there: https://cran.r-project.org/web/packages/gWidgets/index.html

The github version of Retistruct (which will be the next release) uses the gWidgets2 package, which is a rewrite of gWidgets.

briancohn commented 8 years ago

Sounds good! Thanks