Jan de Leeuw <deleeuw at stat.ucla.edu> wrote:
if R had something like
> python -c "print(sum([1,2,3]));print(3*2)"
6
6
What's wrong with
% echo "print(sum(c(1,2,3))); print(3*2)" | R --no-save -q
> print(sum(c(1,2,3))); print(3*2)
[1] 6
[1] 6
>