Thanks Dirk for feedback on this. I'm also trying to take two arguments from stdin and do a simple computation. I'm looking for something like: echo 1 10 | r -e "print(pretty(c(as.numeric(argv[1]), as.numeric(argv[2]))))" which of course doesn't work. Any tips? Cheers, -- Seb