search for: handlerstack

Displaying 3 results from an estimated 3 matches for "handlerstack".

Did you mean: r_handlerstack
2009 Apr 14
0
top level condition handlers
...stop("bad handler specification") .Internal(.addCondHands(classes, handlers, parentenv, NULL, TRUE)) expr } <environment: namespace:base> but it does not work, probably because the handler stack is reset somewhere. Would it work if I poke into the RTopLevel.handlerstack instead of the R_HandlerStack as .addCondHands is doing ? R_Toplevel.handlerstack = R_HandlerStack; R_Toplevel.restartstack = R_RestartStack; R_GlobalContext = R_ToplevelContext = &R_Toplevel; Romain -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blo...
2009 Jun 16
1
calling handlers within R_tryEval
...andlers. 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
2009 Mar 03
1
profiler and loops
...ags; cptr->call = syscall; cptr->cloenv = env; cptr->sysparent = sysp; cptr->conexit = R_NilValue; cptr->cend = NULL; cptr->promargs = promargs; cptr->callfun = callfun; cptr->vmax = vmaxget(); cptr->intsusp = R_interrupts_suspended; cptr->handlerstack = R_HandlerStack; cptr->restartstack = R_RestartStack; cptr->prstack = R_PendingPromises; #ifdef BYTECODE cptr->nodestack = R_BCNodeStackTop; # ifdef BC_INT_STACK cptr->intstack = R_BCIntStackTop; # endif #endif R_GlobalContext = cptr; } So it could be possible to set t...