On Mon, 20 Aug 2007, Lynn Disney wrote:

> I am trying to run an R program in batch mode using R in Windows Server
> 2005. I have found several ways to do this, but keep getting the error
> message "expecting a \n or ; in the command". The main command that I
> have tried is: R CMD BATCH filename.txt from within R


You mean like this:

> R CMD BATCH filename.txt
Error: syntax error, unexpected SYMBOL, expecting '\n' or ';' in "R CMD"
>

???

If not and if you actually issued that line from the shell then there must 
be an error in your 'filename.txt' script.

If so, this is an error in usage. You need to issue that command from a
shell (aka 'MSDOS prompt') or use system(), shell(), etc.

Chuck
>
> But I have also used a variety of other commands as well.
>
>
>
> What am I doing wrong?
>
>
>
> Lynn D. Disney, Ph.D., J.D., M.P.H.
>
> Research Analyst
>
> SEIU 1199
>
> 1771 E. 30th Street
>
> Cleveland, Ohio 44114
>
> Telephone: (216) 566-0117
>
> Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>       [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:[EMAIL PROTECTED]                  UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to