On 22 April 2009 at 11:42, Whit Armstrong wrote: | try littler: | | warmstr...@linuxsvr2:/tmp$ export MYVALUE=`r -e 'cat(10)'` | warmstr...@linuxsvr2:/tmp$ env|grep MYVALUE | MYVALUE=10 | warmstr...@linuxsvr2:/tmp$
Thanks to a suggestion by Paul Gilbert, littler supports the 'status' argument to q() to pass result codes back to the shell --- in bash you can pick that up via $? as shown here: e...@ron:~> r -e 'q(status=10)'; echo "Status was $?" Status was 10 e...@ron:~> Dirk -- Three out of two people have difficulties with fractions. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.