[R] Is this a bug?

2007-04-17 Thread Luca Braglia
I have found a strange ifelse behaviour (I think) This works: ifelse(T,1+1,1+2) [1] 2 ifelse(F,1+1,1+2) [1] 3 Maybe I missed something about R internals, but why ifelse(T,print(hello),print(goodbye)) [1] hello [1] hello ifelse(F,print(hello),print(goodbye)) [1] goodbye [1] goodbye values

Re: [R] Is this a bug?

2007-04-17 Thread Luca Braglia
On 17/04/07 - 14:59, Roland Rau wrote: On 4/17/07, Luca Braglia [EMAIL PROTECTED] wrote: ifelse(T,1+1,1+2) [1] 2 ifelse(F,1+1,1+2) [1] 3 ifelse(T,hello,goodbye) [1] hello ifelse(F,hello,goodbye) [1] goodbye ifelse(T,print(hello),print(goodbye)) [1] hello [1] hello ifelse(F,print

[R] r.lang for highlight software

2007-03-27 Thread Luca Braglia
Dear helpeRs, I apologies if I'll go OT, but I would like to know if someone has yet scripted an R language definition file for highlight (software for syntax highlight, webpage at http://www.andre-simon.de/ ) better than default one which come with installation (on my Debian it's