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

From: ivo welch <ivowel_at_gmail.com>
Date: Wed 12 Jul 2006 - 00:01:43 EST

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 $?
> ;;
regards, /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
Received on Wed Jul 12 00:21:23 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.