Re: [R] command files

2008-12-02 Thread Gabor Grothendieck
On Tue, Dec 2, 2008 at 11:18 AM, Barry Rowlingson <[EMAIL PROTECTED]> wrote: > 2008/12/2 b g <[EMAIL PROTECTED]>: >> >> Since I'm a SAS programmer, I'm used to creating command files in an editor >> for submission later. Is there a way to do this in R? I'd need to retain >> an ouput listing and

Re: [R] command files

2008-12-02 Thread Barry Rowlingson
2008/12/2 b g <[EMAIL PROTECTED]>: > > Since I'm a SAS programmer, I'm used to creating command files in an editor > for submission later. Is there a way to do this in R? I'd need to retain an > ouput listing and a log to check for errors. You probably want R CMD BATCH from a command-line. Fo

Re: [R] command files

2008-12-02 Thread Rainer M Krug
You could also look at littler Then you could use, under Linux, #!PTHTOR/r x <- read.csv(...) lm(...) . . . Rainer On Tue, Dec 2, 2008 at 4:07 PM, Blanchette, Marco <[EMAIL PROTECTED]> wrote: > Try > >> source('myFirstScript.R') > > Where myFirstScript.R as the following line > > x <- rnorm(10

Re: [R] command files

2008-12-02 Thread Blanchette, Marco
Try > source('myFirstScript.R') Where myFirstScript.R as the following line x <- rnorm(100) y <- rnorm(100) plot(x,y) You could also use a editor like emacs with the ess-mode where one buffer can be your script with a live R session in a second buffer. Good luck On 12/2/08 7:21 AM, "b g"

[R] command files

2008-12-02 Thread b g
Since I'm a SAS programmer, I'm used to creating command files in an editor for submission later. Is there a way to do this in R? I'd need to retain an ouput listing and a log to check for errors. _ Send e-mail faster without impr