Re: [Rd] Making custom unary operators in R

2008-03-13 Thread Prof Brian Ripley
The issue here is the parser: ? works because the parser knows about it. To allow further unary operators would need a parser change. On Thu, 13 Mar 2008, [EMAIL PROTECTED] wrote: > Hello, > > Is there a way to define a custom unary operator in R (other than making a > class and 'overloading' t

Re: [Rd] graphics defaults

2008-03-13 Thread hadley wickham
>Can someone point me to a justification for the design > decisions, which seem to be similar in lattice and > ggplot2, of (1) gray backgrounds and (2) filled points? > [I seem to remember seeing somewhere the opposite recommendation > for points, i.e. that open points make it much easier t

[Rd] graphics defaults

2008-03-13 Thread Ben Bolker
Can someone point me to a justification for the design decisions, which seem to be similar in lattice and ggplot2, of (1) gray backgrounds and (2) filled points? [I seem to remember seeing somewhere the opposite recommendation for points, i.e. that open points make it much easier to see if ther

[Rd] Making custom unary operators in R

2008-03-13 Thread Trevor . L . Davis
Hello, Is there a way to define a custom unary operator in R (other than making a class and 'overloading' the normal unary operators in R)? The documentation seems to suggest that only custom binary operators are possible with the ``%abc%``construct but I was wondering whether any one has don

Re: [Rd] bug with R CMP SHLIB (PR#10945)

2008-03-13 Thread Simon Urbanek
On Mar 12, 2008, at 1:00 PM, [EMAIL PROTECTED] wrote: > Hello, > I'm working with R, I try to call C from R. > When I try to compile my file.c to make file.so, with the command : > R CMD SHLIB foo.c > return the message : > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -mmacosx-

[Rd] [Fwd: Re: bug with R CMP SHLIB (PR#10945)]

2008-03-13 Thread Fernando Miguez
-- Fernando E. Miguez Energy Biosciences Institute http://netfiles.uiuc.edu/miguez/www/ --- Begin Message --- Hi, It would be helpful to also include version and sessionInfo(). I recently saw a similar problem in the development version for Mac but not in the current 2.6.2. Fernando [EMAI

Re: [Rd] bug with R CMP SHLIB (PR#10945)

2008-03-13 Thread Martin Maechler
Hi Anais, > "ak" == anais khuong <[EMAIL PROTECTED]> > on Wed, 12 Mar 2008 18:00:08 +0100 (CET) writes: ak> Hello, ak> I'm working with R, I try to call C from R. ak> When I try to compile my file.c to make file.so, with the command : ak> R CMD SHLIB foo.c ak> re

[Rd] Using a binary package built on 2.6.X with 2.7.0, on OSX

2008-03-13 Thread Gabor Csardi
Dear All, an OSX user of mine is trying to use a binary package (igraph) with R 2.7.0, but the package was built on R 2.6.2. R hangs at every .Call() function. I guess this is "normal", you cannot assume that it works for 2.7.0 if it was built for 2.6.x. Am i right? If yes, is there an onlin

[Rd] bug with R CMP SHLIB (PR#10945)

2008-03-13 Thread anais . khuong
Hello, I'm working with R, I try to call C from R. When I try to compile my file.c to make file.so, with the command : R CMD SHLIB foo.c return the message : gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_na