Displaying 1 result from an estimated 1 matches for "apache2_mod_r".
2004 Aug 18
3
R as shared library
...SET_STRING_ELT(R_source_arg, 0, COPY_TO_USER_STRING(r->filename));
errorOccurred=1;
/* R code: source(filename) */
val = R_tryEval(R_source_fun,NULL,&errorOccurred);
if (errorOccurred){
// Send a message to stderr (apache redirects this to the error log)
fprintf(stderr,"apache2_mod_R: source(%s) failed!\n",r->filename);
fflush(stderr);
} else {
return ok;
}
I would like to write R routines which hook into apache specific library
calls to get at the CGI and system data. The apache specific calls need
a request structure (the r variable) which is available...