Displaying 3 results from an estimated 3 matches for "thiscontext".
Did you mean:
thecontext
2000 Nov 07
0
error handling
...and I don't know the
POTENTIAL PROBLEMS that might be introduced. It involves setting up a
context and forcing R_GlobalContext's nextcontext to 0, as in the following
(by the way, this same approach doesn't work in the example above, which is
why I set up a context):
begincontext(&thiscontext, 0, CTXT_GENERIC, R_NilValue, R_NilValue,
R_NilValue);
R_GlobalContext->nextcontext = 0;
if (!SETJMP(thiscontext.cjmpbuf))
R_CurrentExpr = eval(R_CurrentExpr , rho);
endcontext(&thiscontext);
This code solves my problem, however, in certain cases my calling C++ client
application cannot ca...
2009 Jun 16
1
calling handlers within R_tryEval
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...
2005 Jun 14
2
Questions about contexts
I'm trying to clarify contexts and their uses. I do have a good
general understanding of them. My question is about "undeclared"
and "non-existant" contexts.
If I have a block somewhere (in sip.conf, for example), and it
has no "context=thiscontext" field, does it just automatically
use the "default" context? Or is this settable? (I see there is
an entry for context in the [general] block. I'm guessing this
can be used to set a global context for that file. But if this
is omitted, what context does the file get? Is "de...