R 2.3.0 and rgl on OS X 10.4.6 (PR#8833)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

R 2.3.0 and rgl on OS X 10.4.6 (PR#8833)

E. Neely Atkinson
I just downloaded and installed R 2.3.0 on my Mac G5 running
OS X 10.4.6. I also updated with R.app revision 3114 as
recommended. Now, when I attemp to use package rgl
I get the error

> library(rgl)
Error: package 'rgl' is not installed for 'arch=ppc'
>

I have tried reinstalling from CRAN using both binary
and source. The source install fails, The binary install
yields

>
Warning in install.packages(file.choose(), , NULL, type = "mac.binary") :
       argument 'lib' is missing: using /Users/neely/Library/R/library
>

and does not fix the problem.

The same problem occurs with some packages (e1071, svmpath)
but not others (gdata, gplots, gtools).

Any advice would be greatly appreciated.

Neely Atkinson
[hidden email]
713-792-2619

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: R 2.3.0 and rgl on OS X 10.4.6 (PR#8833)

Duncan Murdoch
On 5/4/2006 2:08 PM, [hidden email] wrote:

> I just downloaded and installed R 2.3.0 on my Mac G5 running
> OS X 10.4.6. I also updated with R.app revision 3114 as
> recommended. Now, when I attemp to use package rgl
> I get the error
>
>> library(rgl)
> Error: package 'rgl' is not installed for 'arch=ppc'
>>
>
> I have tried reinstalling from CRAN using both binary
> and source. The source install fails, The binary install
> yields
>
>>
> Warning in install.packages(file.choose(), , NULL, type = "mac.binary") :
>        argument 'lib' is missing: using /Users/neely/Library/R/library
>>
>
> and does not fix the problem.
>
> The same problem occurs with some packages (e1071, svmpath)
> but not others (gdata, gplots, gtools).
>
> Any advice would be greatly appreciated.

I expect you'll need to install from source, but I don't know who will
be able to help you to diagnose why it is failing.  I'd suggest trying
on the R-SIG-Mac mailing list.

If you can determine what the problem is and can fix it I'd be happy to
incorporate your patch.  Otherwise, all I can suggest is that you try a
more commonly used platform.

Duncan Murdoch

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: R 2.3.0 and rgl on OS X 10.4.6 (PR#8833)

Simon Urbanek
In reply to this post by E. Neely Atkinson
Neely,

as Duncan was saying R-SIG-Mac is a better place to discuss it.

On May 4, 2006, at 2:08 PM, [hidden email] wrote:

> I just downloaded and installed R 2.3.0 on my Mac G5 running OS X  
> 10.4.6. I also updated with R.app revision 3114 as ecommended. Now,  
> when I attemp to use package rgl
> I get the error
>
>> library(rgl)
> Error: package 'rgl' is not installed for 'arch=ppc'

This usually means that you have an old package for R 2.2.0 and you  
are trying to use it in R 2.3.0. *)

> I have tried reinstalling from CRAN using both binary and source.  
> The source install fails, The binary install yields
>

AFAIR rgl is currently broken, so there is no binary:
http://r.research.att.com/reports/tiger-universal/results/2.3.0/html/ 
rgl.report.html
I remember fixing this a while ago - it wasn't as simple as casting,  
because the structures are wrong, but I'll see if I can dig out the fix.

> The same problem occurs with some packages (e1071, svmpath) but not  
> others (gdata, gplots, gtools).
>

My guess is that you forgot to re-install them (or you have old local  
packages somewhere). This happens most often if you install libraries  
in your home directory. On OS X it's usually much safer to use system-
wide packages, because that prevents cross-version problems, version-
confusion and the GUI allows you to re-install them automatically.  
That doesn't work for your local packages in home.

Cheers,
Simon

*) - for completeness, you also get this error if you install a  
binary that was not built for the universal R or if the ppc  
architecture build failed. However, neither should not happen with  
CRAN binaries.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: R 2.3.0 and rgl on OS X 10.4.6

Duncan Murdoch
On 5/5/2006 9:50 PM, Simon Urbanek wrote:

> Neely,
>
> as Duncan was saying R-SIG-Mac is a better place to discuss it.
>
> On May 4, 2006, at 2:08 PM, [hidden email] wrote:
>
>> I just downloaded and installed R 2.3.0 on my Mac G5 running OS X  
>> 10.4.6. I also updated with R.app revision 3114 as ecommended. Now,  
>> when I attemp to use package rgl
>> I get the error
>>
>>> library(rgl)
>> Error: package 'rgl' is not installed for 'arch=ppc'
>
> This usually means that you have an old package for R 2.2.0 and you  
> are trying to use it in R 2.3.0. *)

Oops, sorry about my "more commonly used platform" comment.  I thought
this was an older Mac platform, not a current one.

>
>> I have tried reinstalling from CRAN using both binary and source.  
>> The source install fails, The binary install yields
>>
>
> AFAIR rgl is currently broken, so there is no binary:
> http://r.research.att.com/reports/tiger-universal/results/2.3.0/html/ 
> rgl.report.html
> I remember fixing this a while ago - it wasn't as simple as casting,  
> because the structures are wrong, but I'll see if I can dig out the fix.

A simple fix for the error shown on that page is in the patch below.
(The line numbers don't match because I'm working with an unreleased
version.)  I'm hoping there will be another release soon; there are some
additions to rgl.

Duncan Murdoch

Index: api.cpp
===================================================================
--- api.cpp (revision 453)
+++ api.cpp (working copy)
@@ -680,12 +680,14 @@
    int success = RGL_FAIL;
    GLdouble* vertex = pixel;
    int columns = idata[0];
+  GLint viewport[4];

    Device* device = deviceManager->getAnyDevice();

    if ( device ) {
+   for (int i=0; i<4; i++) viewport[i] = view[i];
    for (int i=0; i<columns; i++) {
- gluProject(point[0],point[1],point[2],model,proj,view,
+ gluProject(point[0],point[1],point[2],model,proj,viewport,
  vertex,vertex+1,vertex+2);
  vertex[0] /= view[2];
  vertex[1] /= view[3];
@@ -703,14 +705,16 @@
    int success = RGL_FAIL;
    GLdouble* vertex = point;
    int columns = idata[0];
+  GLint viewport[4];

    Device* device = deviceManager->getAnyDevice();

    if ( device ) {
+     for (int i=0; i<4; i++) viewport[i] = view[i];
    for (int i=0; i<columns; i++) {
         pixel[0] *= view[2];
         pixel[1] *= view[3];
- gluUnProject(pixel[0],pixel[1],pixel[2],model,proj,view,
+ gluUnProject(pixel[0],pixel[1],pixel[2],model,proj,viewport,
  vertex,vertex+1,vertex+2);
  pixel += 3;
  vertex += 3;

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel