[R] open .r files with double-click

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Sat Jun 9 13:20:20 CEST 2007


Hmmm.  Possibly your best bet is to create a batch file, runr.bat or something, and associate .r files with that.

The batch file would be something like:

"C:/Program Files/R/R-2.5.0/bin/Rgui.exe" --no-save < %1

(I think thats how you reference arguments in dos...)


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch on behalf of stevenmh at muohio.edu
Sent: Fri 08/06/2007 7:52 PM
To: r-help at stat.math.ethz.ch
Subject: [R] open .r files with double-click
 
Hi Folks,
On Windows XP, R 2.5.0.

After reading the Installation for Windows and Windows FAQs,
I cannot resolve this.

I set file types so that Rgui.exe will open .r files.

When I try to open a .r file by double-clicking, R begins to launch,
but I get an error message saying

"Argument 'C:\Documents and Settings\Zoology\My Documents\trial.r' _ignored_"

I click OK, and then R GUI opens, but not the script file.

Is there a way to change this?

thanks,
Hank

______________________________________________
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.



More information about the R-help mailing list