[R] Command Line Expressions
Pingping Zheng
pingping.zheng at lancaster.ac.uk
Fri Mar 5 12:10:57 CET 2004
Hi,
Is it possible to run R in command line to evalute R expressions
and return results to stdout, something like
>R CMD -e "R.version$minor"
then you got return
>"8.1"
Or do a simple calculation
>R CMD -e "sin(1.2)"
>0.932039
Thanks.
--
Pingping Zheng
Department of Mathematics and Statistics
Fylde College
Lancaster University
Lancaster LA1 4YF
UK
More information about the R-help
mailing list