Skip to content
Prev 69452 / 398513 Next

use "integrate" for functions defined in C, not R

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