[R] How to run R in batch mode
Paul Roebuck
roebuck at mdanderson.org
Fri Nov 18 17:40:05 CET 2005
On Fri, 18 Nov 2005, Beatriz wrote:
> Paul Roebuck wrote:
>
> >On Fri, 18 Nov 2005, Beatriz wrote:
> >
> >>I want to run R in batch mode but it doen't work (Error: syntax error)
> >>
> >>[SNIP]
> >>
> >>I don't know what is wrong. Could you help me, please?
> >
> >Isn't it possible that it is working just fine and you really
> >do have a syntax error in your R source file (better named
> >as 'test.R') instead?
>
> I've only wirtten
> library(limma)
> in my "test.txt" file and I've tried with test.R and test.r too
Try the following:
$ cat > hello.R
cat("hello, world", "\n")
<Ctrl-D>
$ R CMD BATCH hello.R hello.Rout
$ cat hello.Rout
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
More information about the R-help
mailing list