[R] --no-save and --save toggle from inside R? + BATCH stderr

Duncan Murdoch murdoch at stats.uwo.ca
Tue Jul 11 04:45:28 CEST 2006


ivo welch wrote:
> dear R wizards:  is it possible to instruct R to save or no-save from
> inside R?  
You can specify the action when you call q() or quit(), but you can't 
change the default action.

> or does this have to be given at invokation on the
> command-line?    The same question applies to "--no-restore-data",
> although this presumably would have to be decided in a .First()
> function or something like it.
>   

This one can't currently be changed.

Duncan Murdoch
> on a similar note, I would love a CMD BATCH invokation to output just
> one line to stderr at the end of its run which tells me whether the
> batch job ended prematurely because of an error.  I know this can be
> undesirable if run in another program that refuses output (e.g., a web
> browser, where this can cause havoc if issued before the
> content-type:), so it would require that some switch like --silent
> would suppress this one line summary/error.  This is not urgent---I
> can use the R return code to write a wrapper for this facility, but
> this might be nice default behavior.  My guess is that most of us
> won't mind to see a flag in writing if something went badly wrong.
>
> sincerely,
>
> /iaw
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



More information about the R-help mailing list