[ESS] ESS[S] freezes until job completion?

Martin Maechler maechler at stat.math.ethz.ch
Sat Aug 20 13:11:33 CEST 2005


>>>>> "DavidB" == Brahm, David <David.Brahm at geodecapital.com>
>>>>>     on Fri, 19 Aug 2005 14:44:15 -0400 writes:

    DavidB> Rodney Sparapani <rsparapa at mcw.edu> wrote:
    >> I edit my .r file and press the Load File icon.  The file
    >> is submitted to R, but xemacs is completely unresponsive
    >> until the job is done.

    DavidB> Try hitting ^G.  That should get your Emacs back
    DavidB> without stopping the R process.  Note, however, that
    DavidB> I use emacs (21.3.1), not xemacs, and I use ^C^L
    DavidB> instead of the icon.

Additionally to David's advice:

I strongly advocate using batch mode, i.e., R CMD BATCH  for things that take
more than a few minutes -- do this outside of (x)emacs and if
your institution has something like "compute servers", I've even
started to advocate a customized version - a shell script that
uses "nice" and "nohup" in addition, so our users log into the
server, send off their long running jobs, and can log out again;

The script ends with

-------------------------------------------------------------------------------
## R should run ``in default language'' -- such that "R CMD Rdiff" can work:
export LANGUAGE=C
#
nohup  nice -n 7  R CMD BATCH --no-save --no-restore $@ 2> /dev/null &
##---    suppress the "appending to nohup.out" message : ^^^^^^^^^^^^
if [ -f nohup.out ] ; then rm nohup.out ; fi
-------------------------------------------------------------------------------

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: +41-44-632-3408		fax: ...-1228			<><




More information about the ESS-help mailing list