Re: [R] calling R's library using C

2006-03-02 Thread Dirk Eddelbuettel
(whitespace trimmed) On 2 March 2006 at 13:42, Globe Trotter wrote: | Thanks, everyone for all the help! So, here is my calling function in C | (called | test.c): | | #include | #include | #include | | int main(void) { |printf("%f \n",pchisq(2.,7., 1, 0)); |printf("%f \n",pnch

[R] calling R's library using C

2006-03-02 Thread Globe Trotter
Hi, Thanks, everyone for all the help! So, here is my calling function in C (called test.c): #include #include #include int main(void) { printf("%f \n",pchisq(2.,7., 1, 0)); printf("%f \n",pnchisq(2.,7.,0., 1, 0)); return EXIT_SUCCESS; } I compile using: gcc t