[R] Using an editor with R

Uwe Ligges ligges at statistik.uni-dortmund.de
Sun Nov 27 12:01:59 CET 2005


Duncan Murdoch wrote:

> On 11/26/2005 4:53 PM, Walter R. Paczkowski wrote:
> 
>> Hello,
>> 
>> I changed the setting in options$editor to allow me to use my
>> favorite editor.  In R 2.1.1 on Windows XP, I entered at the
>> command line:
>> 
>> options(editor="c:\\program files\\winedit\\winedit.exe")
>> 
>> When I edited a function, say test, using fix(test), the editor
>> opened perfectly.  But, when I saved the file and closed the
>> editor, the R gui screen was white, blank, and completely
>> unresponsive.  The only thing I could do was close R by clicking on
>> the "X" in the upper right corner of the window.  How can I use my
>> editor but be able to continue using R after I close the editor?
>> What extra setting am I missing?


1. Probably you do not want to use fix() (or only under very rare 
circumstances), but use the code in your editor and source the file into 
R, so you do not need to close the editor.

2. Are you talking about "winedit" or the editor "WinEdt" (just one "i" 
in it ...).?


> 
> This sounds like you didn't really close your editor.  R isn't smart
>  enough to know that the editor closed a file, it can only see when
> the process finishes.
> 
> I'd recommend using the RWinEdt package instead for a different way
> to integrate winedit with R.

Well, at least to integrate "WinEdt". ;-)

Best,
Uwe Ligges



> 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




More information about the R-help mailing list