[R] would be nice ...

Thomas Lumley tlumley at u.washington.edu
Tue Feb 24 16:28:30 CET 2004


On Tue, 24 Feb 2004, Martin Maechler wrote:

>
> or (slightly nicer)
>
>     % echo "sum(c(1,2,3)); 3*2" | R --quiet --vanilla
>     > sum(c(1,2,3)); 3*2
>     [1] 6
>     [1] 6
>     >
>
> but it still echoes the input by default
>

You can use --slave to suppress the input

[al:~] thomas% echo "print(sum(1:3))" | R --slave
[1] 6



	-thomas




More information about the R-help mailing list