[R] How to run R in batch mode
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Nov 18 16:40:59 CET 2005
On 11/18/2005 10:20 AM, Beatriz wrote:
> Hello to everybody!
>
> I want to run R in batch mode but it doen't work (Error: syntax error)
>
> I've found this in R help:
> R CMD BATCH [options] infile [outfile]
>
> I have tried differents commands:
> (I have been working in the same directory I have "test.txt" file and
> "test2.txt" would be the output file)
>
> > R CMD BATCH "test.txt"
Where did you type that? It looks like you typed it within R. That's a
shell command, and needs to be typed in a shell.
However, I can't be sure about this, because you're not showing us what
happened when you tried it.
Please, please, please: if you need help with an error, show us the
exact error message and tell us the context where you received it.
Duncan Murdoch
More information about the R-help
mailing list