[R] error when setting up Rcmd BATCH on new computer

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Mar 27 21:02:15 CET 2009

Brigid Mooney wrote:
> My apologies, the files version 4-3 files I downloaded came from the link:
> http://cran.r-project.org/contrib/extra/batchfiles

Ah, those files, then please ask the author of those files. I'd never 
use them, since running
    R CMD BATCH TestBatch.R testoutput.txt
without those files already works like a charm for me.

Uwe Ligges

> 2009/3/27 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
>> Brigid Mooney wrote:
>>> Hello,
>>> I got a new computer, and am trying to reinstall R and have run into a
>>> bit of a problem when running the BATCH command.
>>> For reference, the OS is Windows Vista, 64 bit.
>>> I installed R 2.8.1 and have the 4-3 files from the following link
>>> extracted with the containing folder in my system PATH variable.
>> Can you explain the sentence above, please?
>> What is 4-3? Which link? containing folder?
>> Uwe Ligges
>>> However, when I try to run the following command from the dos prompt:
>>> Rcmd BATCH TestBatch.R testoutput.txt
>>> Note: TestBatch.R is simply a file containing the statement:
>>> print("hello world")
>>> I get the error: \Common was unexpected at this time.
>>> If anyone can provide any insight into this problem, I would really
>>> appreciate it as I thought I remembered all the steps from when I set
>>> this all up on my old computer...
>>> Thanks,
>>> Brigid
>>> ______________________________________________
>>> R-help at r-project.org 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.

More information about the R-help mailing list