Re: [R] Batch processing in Windows

From: Bos, Roger <roger.bos_at_us.rothschild.com>
Date: Fri, 08 Jun 2007 14:06:06 -0400


Alternatively, use the full path in your call to R as I do below:

"F:\Program Files\R\R-2.4.1pat\bin\R.exe" CMD BATCH --vanilla --slave whatever.R

HTH, Roger  

-----Original Message-----
From: r-help-bounces_at_stat.math.ethz.ch [mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of Gabor Grothendieck Sent: Friday, June 08, 2007 1:51 PM
To: Sébastien Bihorel
Cc: r-help_at_stat.math.ethz.ch
Subject: Re: [R] Batch processing in Windows

R isn't in your path. Either change your path to include it or place Rcmd.bat from batchfiles anywhere in your existing path:

   http://code.google.com/p/batchfiles/

and then:

   Rcmd BATCH ...whatever...

On 6/8/07, Sébastien Bihorel <sbihorel_at_buffalo.edu> wrote:
> Hi,
>
> I am a complete newbe to R, so the following problem will probably be
> trivial for most of you guys: I get an error message every time I try
> to run a R file directly from the DOS shell.
>
> My R file (test.R) is intended to create a basic graph and has a very
> simple code:
>
> x<-rep(1:10,1)
> y<-rep(1:10,1)
> plot(x,y)
>
> I am using the following command to call this file directly from the
> c:/
> root:
> C:/>R CMD BATCH e:/Documents Seb/3_/test.R
>
> And here is the error message (Translated from french to english):
> 'R' is not recognized as an internal or external command, an
> executable script or a command file
>
> My OS is a french Windows XP sp2 and I am using R version 2.5.0. I
> wonder if the problem comes from an installation problem...
>
> Thank you in advance for your help.
>
> Sebastien
>
> ______________________________________________
> R-help_at_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.
>



R-help_at_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.
R-help_at_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. Received on Fri 08 Jun 2007 - 18:11:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Jun 2007 - 19:31:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.