Re: [R] open .r files with double-click

From: Bert Gunter <gunter.berton_at_gene.com>
Date: Mon, 11 Jun 2007 08:42:38 -0700


However, do note (on Windows) that you can use an external text/programming editors (see CRAN's listings)and can register .r / .R files to open automatically in the chosen editor when clicked on.At least some of these editors (eg TINN-R) can be configured to automatically and simultaneously open the RGUI, too, I believe -- but someone may correct me on this.

Bert Gunter
Nonclinical Statistics
7-7374

-----Original Message-----
From: r-help-bounces_at_stat.math.ethz.ch
[mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of Duncan Murdoch Sent: Saturday, June 09, 2007 4:29 AM
To: stevenmh_at_muohio.edu
Cc: r-help_at_stat.math.ethz.ch
Subject: Re: [R] open .r files with double-click

On 08/06/2007 2:52 PM, stevenmh_at_muohio.edu wrote:
> 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?

Not currently. See the appendix "Invoking R" of the Introduction manual for the current command line parameters, which don't include "open a script". This would be a reasonable addition, and I'll add it at some point, sooner if someone else comes up with a convincing argument for the "right" command line parameter to do this.

It would be better if clicking on a second script opened a new window in the same session, but that takes more work; not sure I'll get to this.

Duncan Murdoch



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 Mon 11 Jun 2007 - 15:53:32 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 Mon 11 Jun 2007 - 16:31:48 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.