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

ivo welch ivowel at gmail.com
Tue Jul 11 16:01:43 CEST 2006


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



More information about the R-help mailing list