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

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Mon, 25 Aug 1997 12:24:54 +0200


>>>>> "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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-