On 25/02/2013 04:56, Andrew Christianson wrote:
So this is a strange one.

Is it? Do you have X11 installed (from Xquartz on your OS)? The standard rgl (like the standard Tk) is an X11 application. If you do have Xquartz installed, try launching manually first, in case launchd is somehow broken on your system. And check that DISPLAY is not set.

X11 rgl works fine on both my 10.8.2 systems.

As far as I know aglrgl.so needs a Quartz event loop running, and that is what R.app provides.


Whenever I try to load the package 'rgl' via the usual 'library(rgl) in R 
sessions inside bash, Rstudio, and sublime text (SublimeREPL) the session hangs 
and refuses to load the package.  The strange part is, if the package loads 
fine within the R GUI app.  Loading in verbose mode shows the successful load 
in R.app as:

        now 
dyn.load(/library/frameworks/r.framework/versions/2.15/resources/library/rgl/bin/x86_64/aglrgl.so)
 …

while the others hang at

                now 
dyn.load(/library/frameworks/r.framework/versions/2.15/resources/library/rgl/bin/x86_64/rgl.so)
 …

Is it possible to force 'library(rgl)' to load the 'aglrgl.so' package in an 
environment other than R.app?  Or is there some way to fix the package so it 
will load in those other environments?

I've googled this in every way I can think of and nothing comes up.  I've also 
un- and re-installed in multiple times.  When I tried to rebuild from source, 
via R CMD INSTALL, the build hangs at the last step 'testing if installed 
package can be loaded' and I'm forced to kill the process.

Thanks for any help you can offer.

System Information:

R: 2.15.2 (64-bit)
OSX: 10.8.2

Andrew Christianson
[email protected]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac



--
Brian D. Ripley,                  [email protected]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to