Tena koe Matt

I tend to create a .bat file with one line:

R\R-Current\bin\R CMD BATCH yourScript.R

where you replace R\R-Current\bin\R with the path to your R, and the
.bat file is in the same folder as yourScript.R.

There may be better ways, and doubtless someone will enlighten us both
if there are.

HTH ....

Peter Alspach

> -----Original Message-----
> From: r-help-boun...@r-project.org 
> [mailto:r-help-boun...@r-project.org] On Behalf Of Matt Asher
> Sent: Friday, 5 March 2010 12:43 p.m.
> To: r-help@r-project.org
> Subject: [R] Running script with double-click
> 
> Hi,
> 
> I need to be able to run an R script by double-clicking the 
> file name in Windows. I've tried associating the .r extension 
> with the different R .exe's in /bin but none seems to work. 
> Some open R then close right away, and Rgui.exe gives the 
> message ARGUMENT "/my/file.r" __ignored__ before opening a 
> new, blank session.
> 
> I've tried Google and looking in the R for Windows FAQ but 
> didn't see anything.
> 
> Thanks.
> 
> ______________________________________________
> R-help@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.
> 

______________________________________________
R-help@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.

Reply via email to