On Sun, 11 Feb 2001, Brian Ingerson wrote:
> PS I'm trying to figure out how to R_eval from a Perl string. Try to
> make this work if you can.
I think the trick is to add --no-gui to your argv (otherwise, R is going
to go into command line interface mode, I believe, instead of batch).
Untested, this just from looking at some examples.
> void my_R_init() {
> char *argv[] = {"R_Embedded_Inline", "--silent"};
> int argc = sizeof(argv)/sizeof(argv[0]);
>
> Rf_initEmbeddedR(argc, argv);
> }
This also doesn't actually seem to be invoking R_eval() at all ...
> void my_R_eval(char* R_cmd) {
> printf("%s\n", R_cmd);
> }
I'm actually embroiled in another project at the moment, so I won't be
able to participate actively for awhile (but what a can of worms I've
opened!). Thanks for your interest in R!
-Aaron