[Rd] stop R mainloop without calling exit(1)

Jeffrey Horner jeff.horner at vanderbilt.edu
Thu Aug 31 17:57:34 CEST 2006


Thomas Kelder wrote:
[...]

> By the way, I use R version 2.2.1 in linux, because I got the "Error:
> C stack usage is too close to the limit R" error in higher versions (I
> saw there was a topic about this already:
> https://stat.ethz.ch/pipermail/r-devel/2006-April/037219.html). I
> tried to use the R-devel version to make use of the Rf_endEmbeddedR
> method, but the error also occurs in this version. Could this be a
> bug?

Try this in your code. It turns off stack checking altogether:

     #ifdef CSTACK_DEFNS
     /* Don't do any stack checking */
     R_CStackLimit = -1;
     #endif
     Rf_initEmbeddedR(R_argc, R_argv);


Jeff
-- 
http://biostat.mc.vanderbilt.edu/JeffreyHorner




More information about the R-devel mailing list