Re: [R] Calling R from C - part way there but need a push!

2008-04-29 Thread Maximillian Murphy
I'm afraid I haven't quite got the hang of this yet. Here's a Hello World: #include #include #include #include extern int R_running_as_main_program; /* in ../unix/system.c */ int main(int ac, char **av) { SEXP aleph, beth; // R_running_as_main_program = 1; // A //

[R] Calling R from C - part way there but need a push!

2008-04-29 Thread Maximillian Murphy
Dear All, I've read the manual on "Writing R Extensions" and in particular the part on calling R from C. (Most of the manual is about calling C from R, not the other way around.) The good news is that I can now call _some_ R from C, specifically the R functions which have C header file