Skip to content

[R-gui] Interface for Edit-Plus Editor

3 messages · Greg Riddick, Philippe GROSJEAN, Martin Maechler

#
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@pair.com>
To: "Greg Riddick" <gr3k@virginia.edu>
Sent: Friday, October 03, 2003 1:27 PM
Subject: Re: [R-gui] Interface for Edit-Plus Editor
Windows). http://www.editplus.com/
program and capture the output.
anyone have experience they could share with me about interfacing editors to
R in windows?

  
  
#
Greg,

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.
Best,

Philippe Grosjean

-----Original Message-----
From: r-sig-gui-bounces@stat.math.ethz.ch
[mailto:r-sig-gui-bounces@stat.math.ethz.ch]On Behalf Of Greg Riddick
Sent: Friday, 03 October, 2003 19:32
To: r-sig-gui@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@pair.com>
To: "Greg Riddick" <gr3k@virginia.edu>
Sent: Friday, October 03, 2003 1:27 PM
Subject: Re: [R-gui] Interface for Edit-Plus Editor
Windows). http://www.editplus.com/
program and capture the output.
anyone have experience they could share with me about interfacing editors to
R in windows?
_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI@stat.math.ethz.ch
https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-gui
#
Greg> I actually am trying to execute using a command passed
    Greg> to Rterm.exe.  I get the following output back to the
    Greg> editor:

Note that for ESS and windows, there's an extra command line
option,
	Rterm.exe --ess  .....

which should help {but about which I don't know much more (since
I'm almost always using Unix alikes)}.

Martin

    Greg> ---------- R-batch ----------

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

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

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

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


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



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


    >> On Fri, 3 Oct 2003 10:12:42 -0400, "Greg Riddick"
    >> <gr3k@virginia.edu> wrote :
    >> 
    >> >I'm trying to develop an interface between R and the
    >> Editplus editor (for
    Greg> Windows). http://www.editplus.com/
    >> >Editplus can be customized to send files and selected
    >> text to an external
    Greg> program and capture the output.
    >> >I've tried using batch commands to R etc. without much
    >> success. Does
    Greg> anyone have experience they could share with me about
    Greg> 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