[R] use "integrate" for functions defined in C, not R
Zhijin Wu
zwu at jhsph.edu
Tue May 10 15:38:17 CEST 2005
> 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.
regards,
Jean
More information about the R-help
mailing list