[Rd] calling handlers within R_tryEval

From: Romain Francois <romain.francois_at_dbmail.com>
Date: Tue, 16 Jun 2009 09:57:40 +0200


When using R_tryEval (from JRI in my case), is there a way to setup error recovery strategy and more generally calling handlers.  From my reading of context.c, R_tryEval calls R_ToplevelExec which creates a context like this:

    begincontext(&thiscontext, CTXT_TOPLEVEL, R_NilValue, R_GlobalEnv,

         R_BaseEnv, R_NilValue, R_NilValue);

so I guess what I am trying to do is add "cend" and/or "handlerstack" to this context. Is this possible ? Are there examples of packages doing this ?


Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30

R-devel_at_r-project.org mailing list
Received on Tue 16 Jun 2009 - 08:05:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 16 Jun 2009 - 18:36:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive