[R] execute R expression from command line
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 __ 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
Re: [R] execute R expression from command line
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