[R] Standalone RMath.h in C

2009-10-19 Thread RwithC
Hi I want to use standalone Rmath.h in C, but I am getting the following error: /.../include/R_ext/Boolean.h:29: error: conflicting declaration 'FALSE' /.../include/Rmath.h:191: error: 'FALSE' has a previous declaration as 'Rboolean FALSE' /.../include/R_ext/Boolean.h:29: error: conflicting decla

[R] Help with pchisq function

2009-10-07 Thread RwithC
I have some data in my C code, I want to execute chi-square test on those data. I tried implementing pchisq() function making use of header files R.h, Rhead.H and Rinternals.h, but it neither gave me the result nor threw any errors. It just returned 0 or 1. Could you please help me how can I imp