From: <Benjamin.STABLER_at_odot.state.or.us>

Date: Tue 13 Jul 2004 - 06:37:12 EST

Subject: Re: [R] text editor for R - summary on R-WinEdt

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 13 06:53:12 2004

Date: Tue 13 Jul 2004 - 06:37:12 EST

I implemented Uwe's R-WinEdt package as a closer to true WinEdt mode so that
WinEdt could be used with other modes as well. I sent Uwe the
implementation and we talked a little about cleaning it up, but I haven't
gotten around to it and I don't think he has either. It is still a little
messy as Uwe noted below but it works well. There is no code changes, just
running a WinEdt macro and editing a few start up files. Below are the
instructions. I'll post all the required files (rwinedt2.zip file) on our
website at: http://www.odot.state.or.us/tddtpau/R.html.

All the best,

Ben Stabler

Customizing R-WinEdt Mode

Ben Stabler 12/19/03

- Install R-WinEdt as instructed.
- Unzip rwinedt2.zip
- Run R-Mode.edt macro from the WinEdt interface.
- Add the following lines to your Rprofile file (under R\etc)

options(pager="c:/program files/winedt team/winedt/winedt.exe") options(editor="c:/program files/winedt team/winedt/winedt.exe")

5) Open WinEdt.btn and add this to the end of the list of bitmaps

246 %B\Bitmaps\Buttons\R-history.bmp 247 %B\Bitmaps\Buttons\R-paste.bmp 248 %B\Bitmaps\Buttons\R-source.bmp 249 %B\Bitmaps\Buttons\R-script.bmp

6) Open WinEdt.img and add this to the end of the list of bitmaps

246 %B\Bitmaps\Images\R_history.bmp 247 %B\Bitmaps\Images\R_paste.bmp 248 %B\Bitmaps\Images\R_source.bmp 249 %B\Bitmaps\Images\R_script.bmp

7) Add the R menu items to the Default WinEdt Toolbar by right clicking on the toolbar. Then select Enter Toolbar Setup. Finally, click the R buttons (there are four) and add them one at a time to the toolbar.

-----Original Message-----

From: Uwe Ligges [mailto:ligges@statistik.uni-dortmund.de]
Sent: Wednesday, July 07, 2004 11:56 PM

To: r-help@stat.math.ethz.ch Cc: wangk@maths.anu.edu.au; d.scott@auckland.ac.nz; maj@stats.waikato.ac.nz; andy_liaw@merck.com

Subject: Re: [R] text editor for R - summary on R-WinEdt

Dear all,

let me try to summarize this thread's R-WinEdt related messages and give a few comments:

Murray Jorgensen wrote:

> I tried R-WinEdt a few years ago, but as I remember it interfered with

* > my usual use of WinEdt which is as a front end to MiKTeX. Is there a
** > way to use WinEdt both ways?
*

Yes, as already answered by some others ...

There are plans to be able to have an R mode in the usual WinEdt setting, so R's highlighting will adapt to the current document settings, but I don't know when there will be time to implement that in a clean manner.

David Scott wrote [in response to Murray Jorgensen]:

> This problem annoyed me for a while too. My solution (which is not

* > perhaps ideal) is this. You want two different incarnations of WinEdt,
** > one for TeX, the other for R. On the desktop I have a shortcut to
** > WinEdt which is the one for TeX stuff. I open the other one with R
** > syntax highlighting etc by starting R and using library(RWinEdt). To
** > do this you have to install the RWinEdt package and SWinRegistry. This
** > is all well explained in the ReadMe.txt for RWinEdt.
** >
** > I think with the right additions to the Target field in a shortcut to
** > WinEdt you can call up the incarnation of WinEdt that is suitable for
** > R. I haven't done that. You would then have two shortcuts to WinEdt,
** > one for your TeX stuff, one for R.
*

Thanks for this detailed and accurate description.

Liaw, Andy wrote:

> Uwe would be the authority on this 8-), but my impression is that if

* > you keep two separate shortcuts, you should be fine. The one for
** > R-WinEdt has flags that sets it up for R, which should not be used
** > in the one for MikTeX.
*

Indeed.

Kevin Wang wrote:

> I think Andy is correct. A few years ago (back in the dark ages --

* > before I discovered Emacs/ESS), I had two short cuts, one calls
** > R-WinEdt (i.e. with flags...etc) and the other with just a normal
** > WinEdt icon.
** >
** > However, I *think* now you can interact R-WinEdt within R directly
** > (I tried the new version about 2 ~ 3 months ago just for fun, and
** > that seemed to be the case, but I can't quite remember *_*).
*

You can fire up R-WinEdt from R, but I would not call it "interact within R directly".

Peter Flom wrote:

> I use WinEdt for both. I simply installed it twice, and set up one

* > version for R and one for LaTeX, I have seperate icons on the desktop,
** > with different names, and it works fine.
*

It is not necessary to have two installations.

Uwe Ligges

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 13 06:53:12 2004

*
This archive was generated by hypermail 2.1.8
: Wed 03 Nov 2004 - 22:54:52 EST
*