On  8 Sep 2005, [EMAIL PROTECTED] wrote:

> Can I execute an R expression from the command line without having
> it in an infile, something like perl's -e flag. So it would look
> like:
>
> R {Rexpression;} > outfile

With a bash-like shell, you can do:

echo "library(foo); somefunc(5)" | R --slave 

HTH,

+ seth

______________________________________________
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

Reply via email to