From ihaka@stat.auckland.ac.nz  Thu Nov 27 23:57:40 1997
From: ihaka@stat.auckland.ac.nz (Ross Ihaka)
Date: Fri, 28 Nov 1997 12:57:40 +1300 (NZDT)
Subject: R-alpha: RData in batch
In-Reply-To: <Pine.OSF.3.96.971127103915.13153A-100000@alpha>
References: <Pine.OSF.3.96.971127103915.13153A-100000@alpha>
Message-ID: <199711272357.MAA01329@stat1.stat.auckland.ac.nz>

Philippe Lambert writes:
 > Thus, 
 > would it be possible to have R not creating .RData file by default in
 > batch mode?

Hmmm.  Actually I was on your side, but there were a number of
requests to do it the other way.

So let me play Solomon ...

I think that I will introduce two new options to be used when invoking
R.

	R -save
	R -nosave

The default behavior in batch mode will be to refuse to run unless one
of these options is specified.

Multiple versions of these options will be allowed on the command
line, and it is the last (rightmost) one which determines what
happens.

In the front-end shell-script there is a line which reads

	exec $DEBUGGER $RHOME/bin/R.binary $*

and I will change this to

	exec $DEBUGGER $RHOME/bin/R.binary $BATCHSAVE $*

and give the person installing R the option of setting a value for
BATCHSAVE in the config.site script (or when we go gnu --with-save
or --with-nosave).

This way there can be a site-wide selection of the default behavior
which individual users can override.

Sound ok?
	Ross

(I think that Thomas L pointed out that the real bug that bit you has
been fixed too).
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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: RData in batch
Ross Ihaka