Re: [R] use "integrate" for functions defined in C, not R

From: Zhijin Wu <>
Date: Tue 10 May 2005 - 23:38:17 EST

> 1) This is the wrong list: please read the posting guide.
> 2) You cannot just leave out arguments in C calls, so it seems that you
> need help with C programming rather than R. If you include the
> appropriate headers this will be checked, so I guess you have not.

Dear Dr. Ripley,
  Thank you for the reply. I was wondering maybe someone has tried similar things using the C code in R base.   I included the same header as the original code "integrate.c", except #include <R_ext/Applic.h> has been changed to "Myapplic.h" to use my definition of
typedef void integr_fn(double *x, int n).

I did not simply leave out arguments in the C calls, but redefined all functions involving "environment" with one less parameter.

Thank you.

Jean mailing list PLEASE do read the posting guide! Received on Tue May 10 23:43:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:40 EST