From romain.francois at dbmail.com  Tue Jun 16 20:16:09 2009
From: romain.francois at dbmail.com (Romain Francois)
Date: Tue, 16 Jun 2009 20:16:09 +0200
Subject: [Rd] calling handlers within R_tryEval
In-Reply-To: <alpine.DEB.1.00.0906161212420.26719@luke-inspiron>
References: <4A375074.2010401@dbmail.com>
	<alpine.DEB.1.00.0906161212420.26719@luke-inspiron>
Message-ID: <4A37E169.1060704@dbmail.com>

Hi,

If there is something I can do to push up this one, let me know.

Romain

luke at stat.uiowa.edu wrote:
>
> 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
>>


-- 
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr



[Rd] calling handlers within R_tryEval
Romain Francois