[R-gui] Interface for Edit-Plus Editor

Philippe Grosjean phgrosjean at sciviews.org
Sat Oct 4 12:51:08 MEST 2003


It seems you are trying to use interactive functions like getline() in
batch, that is, a non-interactive mode of R. You can look at the WinEdt
interface: it mostly uses sendkeys to simulate actions in RGui. In WinEdt
interface, there seems to be a problem when RGui is iconized, because then,
R does not interpret keystrokes.

I wrote a little program to allow sending commands, and sourcing files to
RGui from TextPad (http://www.textpad.com). You can find it at
http://www.r-project.org/GUI, in the IDE/Script Editors section. You can
either use Textpad which has quite similar features as Edit-Plus (after a
quick glance in the web site), or you can adapt and use it with Edit-Plus.

Philippe Grosjean

-----Original Message-----
From: r-sig-gui-bounces at stat.math.ethz.ch
[mailto:r-sig-gui-bounces at stat.math.ethz.ch]On Behalf Of Greg Riddick
Sent: Friday, 03 October, 2003 19:32
To: r-sig-gui at stat.math.ethz.ch
Subject: Re: [R-gui] Interface for Edit-Plus Editor

I actually am trying to execute using a command passed to Rterm.exe.
I get the following output back to the editor:

---------- R-batch ----------

R : Copyright 2002, The R Development Core Team
Version 1.6.1  (2002-11-01)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type `license()' or `licence()' for distribution details.

R is a collaborative project with many contributors.
Type `contributors()' for more information.

Type `demo()' for some demos, `help()' for on-line help, or
`help.start()' for a HTML browser interface to help.
Type `q()' to quit R.

*** Error: getline(): not interactive, use stdio.
Normal Termination
Output completed (1 sec consumed).

----- Original Message -----
From: "Duncan Murdoch" <dmurdoch at pair.com>
To: "Greg Riddick" <gr3k at virginia.edu>
Sent: Friday, October 03, 2003 1:27 PM
Subject: Re: [R-gui] Interface for Edit-Plus Editor

> On Fri, 3 Oct 2003 10:12:42 -0400, "Greg Riddick" <gr3k at virginia.edu>
> wrote :
> >I'm trying to develop an interface between R and the Editplus editor (for
Windows). http://www.editplus.com/
> >Editplus can be customized to send files and selected text to an external
program and capture the output.
> >I've tried using batch commands to R etc. without much success. Does
anyone have experience they could share with me about interfacing editors to
R in windows?
> I don't have any experience with that.  However, if they can work with
> a console mode program, then rterm (not Rgui) is what you want to be
> executing.
> Duncan Murdoch

	[[alternative HTML version deleted]]

R-SIG-GUI mailing list
R-SIG-GUI at stat.math.ethz.ch

More information about the R-SIG-GUI mailing list