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

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Wed 12 Jul 2006 - 00:18:43 EST

ivo welch wrote:
> the following diff to the shell script invoking R prints an error
> message if R terminates with an error code:
>
> 112c112,119
> < exec sh "${R_HOME}/bin/Rcmd" "${@}" ;;
> ---
>
>> sh "${R_HOME}/bin/Rcmd" "${@}"
>> rc="$?"
>> if [ "$rc" -ne 0 ]; then
>> shift ;
>> echo "${@}: Error Return Code: $rc"
>> fi
>> exit $?
>> ;;
>>
This looks to me like a good suggestion, but I generally don't make modifications to platform-specific things on platforms I don't use, so I'd suggest posting this to R-devel or on the bug list as a wishlist item. Otherwise it might get lost.

Duncan Murdoch



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 Wed Jul 12 00:23:08 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 - 02:19: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.