Re: [R] Passing Inf from R to C using .C("myLibC"...

2008-04-24 Thread Duncan Murdoch
On 4/24/2008 9:01 AM, Ardia David wrote: > Dear all, > How can I pass '-Inf' and 'Inf' values from R to C code using the > function '.C(...)'. When running my code, I get an error since C does > not recognize -Inf and Inf values. Of course, I could use instead a very > low (or high) number, but

[R] Passing Inf from R to C using .C("myLibC"...

2008-04-24 Thread Ardia David
Dear all, How can I pass '-Inf' and 'Inf' values from R to C code using the function '.C(...)'. When running my code, I get an error since C does not recognize -Inf and Inf values. Of course, I could use instead a very low (or high) number, but I was wondering whether a more elegant solution ex