From Martin Maechler <maechler@stat.math.ethz.ch>  Mon Aug 25 11:24:54 1997
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Mon, 25 Aug 1997 12:24:54 +0200
Subject: R-alpha: batch   q(save = 'no')
In-Reply-To: <9708250742.AA12773@alpha.luc.ac.be> (message from Jim Lindsey on
 Mon, 25 Aug 1997 09:42:30 +0200 (MET DST))
Message-ID: <199708251024.MAA00793@sophie.ethz.ch>

>>>>> "Jim" == Jim Lindsey <jlindsey@luc.ac.be> writes:

    Jim> Batch: Putting q(save=F) at the end of my file does not work in my
    Jim> context because I can no longer source the file without
    Jim> quitting. I have that quit statement in my .First so that I always
    Jim> quit that way interactively. The problem is that it is ignored in
    Jim> batch.

I've tested the following, and it seems to work :

Add
	if(!interactive()) q(save = "no")

at the end of your batch files.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: batch q(save = 'no')
Martin Maechler