Skip to content
Prev 23971 / 63424 Next

non-interactive R_tryEval does not return

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
Unpacking the above a bit, I guess the meaning of 'as expected /
documented' is that in non-interactive modes errors halt R (in
errors.c just before LONGJMP(R_ToplevelContext->cjmpbuf, 0)). This
does not seem quite consistent with the idea that R_tryEval is 'the
equivalent of submitting an expression from the toplevel and returning
to the toplevel', since in this case there is no return to the top
level.  This tension is where my problem came from.
Alternative GUIs might want an interactive, embedded R. I would have
thought other uses (web services for me) would rather a
non-interactive embedded R. Whatever the case, I likely over-worried
the consequences of R_Interactive=TRUE; it seems only to matter with
plots, or when there is a segfault (plus whatever user packages might
choose to do differently in response to interactive()).

Thanks to both for the help,

Martin

  
    
Message-ID: <6ph8xerghmn.fsf@gopher4.fhcrc.org>
In-Reply-To: <Pine.LNX.4.64.0702212231510.12540@gannet.stats.ox.ac.uk> (Brian Ripley's message of "Wed, 21 Feb 2007 22:58:04 +0000 (GMT)")