[R] R run under Emacs fatal errors halt execution
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Nov 14 09:37:24 CET 2008
1) Why make life difficult for yourself by not using ESS? You are running
R in non-interactive mode because that's the way NTEmacs does things with
a shell buffer. But people have been here before and we (the R
developers) provided a solution years ago.
There is a flag --ess that was added for this purpose (to work around the
issue in ESS), so look up what it does and make use of it.
3) R does not run under 'the DOS shell': I presume you mean cmd.exe, the
Windows 'command prompt'. The issue is pretty much independent of the
shell in use: it is the lack of ptys on Windows that makes NTEmacs
different from other platforms.
On Thu, 13 Nov 2008, Stavros Macrakis wrote:
> I am running R.exe/Rterm.exe 2.7.1 under Emacs 22.1 under the DOS
> shell under Windows XP. (My Cygwin installation is broken!) I am not
> currently using ESS:
> > R.exe --vanilla
> R version 2.7.1 ...
> > 1+1
> This works fine until I hit an R error -- pretty much any error --
> when the process halts and returns to the shell:
> Wrong number of arguments error:
> > quote()
> Error in quote(): 0 arguments passed....
> Execution halted
> Syntax error:
> > )
> Error: unexpected ')' in ")"
> Execution halted
> The same thing happens in R.exe and Rterm.exe.
> How do I get R to catch the error and let me continue?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help