Re: [R] Command-line arguments and --interactive

2009-11-10 Thread Adam D. I. Kramer
On Tue, 10 Nov 2009, Duncan Murdoch wrote: --interactive tells R that there is a human producing the input stream, so it can ask questions and expect them to be answered. In your experiments with it, your input stream was the pipe holding the output of echo, and R got confused because that p

Re: [R] Command-line arguments and --interactive

2009-11-10 Thread Duncan Murdoch
Adam D. I. Kramer wrote: Hello, I am interested in passing a command or two to R on the command line. The desired behavior is for R to run these commands first, and then begin an interactive session. For example: $ R -e 'foo <- read.csv("/tmp/foo.csv")' ...which would launch R and execu