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

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue 11 Jul 2006 - 12:45:28 EST

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@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
>



R-help@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 Received on Tue Jul 11 12:51:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 12 Jul 2006 - 00:20:38 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.