[R] R-WinEdt question - answer

Arndt, Ulrich, VF-VP ulrich.arndt at vodafone.de
Mon Jan 7 15:07:37 CET 2002


Very good description. 
I gues that there is one error tree times copied:

-e=r.ini NOT -er.ini

so the correct rows are:

   options(editor"\"c:/program files/winedt/winedt\"-c\"R-WinEdt-edit\"
-e=r.ini -V") 
   options(pager"\"c:/program files/winedt/winedt\" -C\"R-WinEdt\" -e=r.ini
-V")

   "c:\program files\winedt\winedt" -C"R-WinEdt" -e=r.ini

Regards

         Ulrich

-----Original Message-----
From: Boylan, Richard [mailto:rboylan at cba.ua.edu]
Sent: Saturday, January 05, 2002 5:27 PM
To: 'r-help at lists.R-project.org'
Subject: [R] R-WinEdt question - answer



The answer to my question was contained in
http://cran.r-project.org/contrib/extra/winedt/ReadMe ,
although it helped to receive the restatements that were emailed to me. 

As mentioned by Uwe Ligges, Renuad Lancelot, Niels Waller, my mistake was
not starting R before
using R-WindEdt.

Below I will copy the instructions on using R-WinEdt by Renaud Lancelot
(except for the last paragraph which is by Uwe Ligges) in case they can be
of help to anyone else.

Thank you very much for the clear answers.

INSTRUCTION ON USING R-WINEDT  -- RENAUD LANCELOT, UWE LIGGES

 - Install R (rw1020 or later)

  - Install WinEdt 5 (V. 5.2, Build: 20001213 or later)
    Note: WinEdt is Shareware (http://www.winedt.com).

  - Unzip the archive into directory ....\winedt\plugins\r-winedt
    (e.g. "c:\program files\winedt\plugins\r-winedt")
    If the directory does not exist, you have to create it manually.

** check that this was correctly done

  - In your Windows-Explorer double-click on "install.bat".

** works only if the previous step was right

  - If you are running RGui in multiple windows style (MDI), the default mod
    unchanged. For RGui in single window style (SDI) or if you want to use R
    S-Plus, you can change the R-WinEdt mode permanently(!) using the Menu, 
    R -> Set R --sdi mode

** I did not have to do anything at this point.

  - In R use something like (for example in your .Rprofile):
   options(editor"\"c:/program files/winedt/winedt\"-c\"R-WinEdt-edit\"
-er.ini -V") 
   options(pager"\"c:/program files/winedt/winedt\" -C\"R-WinEdt\" -er.ini
-V")

** Careful: R Windows versions, this file is called Rprofile (without the
dot)
** and is located in the etc directory (C:\Program Files\rw1031\etc for me).
** However, this is optional: I implemented it on my office computer
** but not on my home PC (pure laziness !). It allows displaying help files
** in a WinEdt window, which is more convenient and stable than with the
default
** R pager.
** Be careful with the / and \. I did not change anything to the aboveand
** it works (just make sure that the paths are correct for you)

  - To invoke WinEdt from startmenu or desktop create a link to WinEdt
    as follows:
    "c:\program files\winedt\winedt" -C"R-WinEdt" -er.ini

** check that the path is correct. Specify a relevant starting directory
for your needs.

Once the setup is complete and correct , you have to create a new 
file (file menu or small icon at the left of the main menu. Type some R
commands
and then source the file (after saving it) or select the lines you want
to run and do Alt + P or click on the "R <- paste" icon.

You will find a screen copy I just made on my computer which might be
clearer...
 <<R-WinEdt.jpg>>   {{{deleted from mailing list; it's too long; find it at
		       ftp://stat.ethz.ch/Software/R/R-WinEdt.jpg -- MM}}

ALT+l sends a line, ALT+p sends marked text or ALT+s to
source() the current file into R. The shortcuts can also be accessed in
the menu.

Note: As a default setting, RGui.exe has to be started in MDI mode at
first (and cannot minimized - known but unsolvable bug).

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._


---------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!

**

Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
---------------------------------------------------------


---------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!

**

Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
---------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list