[Rd] calling handlers within R_tryEval

luke at stat.uiowa.edu luke at stat.uiowa.edu
Tue Jun 16 19:14:24 CEST 2009


Not at present.  It would be nice to have at least a mechanism for C
level exiting handlers (which is what the cend ones are intended to be)
but it hasn't risen high enough on my to do list yet to get done.

luke

On Tue, 16 Jun 2009, Romain Francois wrote:

>
> Hello,
>
> 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
>
>

-- 
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



More information about the R-devel mailing list