Skip to content
Prev 744 / 63421 Next

R-alpha: batch

Jim Lindsey <jlindsey@luc.ac.be> writes:
One rather nasty thing to consider is that interactivity is (as I
understand it) detectable only by the existence of a controlling
terminal. This can cause trouble with cases where the controlling
terminal disappears, one case being upon logout from the windows
system or a system shutdown. Presumably, most people prefer their work
to be saved in those cases.

What might be a much better idea is to make the saving (and loading
too) of .Rdata into command line options, so that

R BATCH filein fileout

would translate into 

R -nosaveimg -noloadimg < filein > fileout