Message-ID: <Pine.GSO.4.10.10505100927390.29707-100000@athena.biostat.jhsph.edu>
Date: 2005-05-10T13:38:17Z
From: Zhijin Wu
Subject: use "integrate" for functions defined in C, not R
In-Reply-To: <Pine.LNX.4.61.0505100544290.17882@gannet.stats>
> 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