|

|
|
R-Sweave
A variant of RWinEdt:
- inclusion of the RWinEdt stuff (menu, highlighting, tool bar buttons) in a standard WinEdt session instead of running it in a limited stand alone WinEdt instance.
- additional stuff (menu, buttons) for the sweave support (sweave.edt)
Installation
- Create a sub-folder R-Sweave in %B\Contrib (where %B probably refers to C:\Program Files\WinEdt Team\WinEdt) and put there the content of the R-Sweave.zip file.
- Open WinEdt.
- Make a backup of your present configuration (using Options | Maintenance | Backup).
- Launch the R-Sweave_install.edt macro (for instance by opening the file in WinEdt and pressing Ctrl-Shift-F9).
Optionally, you may add R-Sweave related buttons to the Tool Bar through the Enter Tool Bar Setup... dialog (contextual menu from the tool bar). However, you should first restart WinEdt to have access to the R-Sweave buttons.
Usage instructions
You can customize the menu items.
Here are the arguments (registry) that can be passed to the Sweave.edt macro:
- LetReg(6,"xxx");
- where xxx can be pdf, dvi, Stop or Direct, the latter being an alias of pdf.
- LetReg(7,"R installation path");
- can be used to tell the macro where it can find the R binaries. If empty, sweave.edt uses the value given by the Windows registry.
- LetReg(8,"cache");
- for running cacheSweave instead of Sweave.
- LetReg(8,"R");
- for running Stangle instead of Sweave. Stangle just concatenates all chuncks into a single %n.R file. Indeed when choosing this option, the %!6 register will be ignored.
- LetReg(9,"open");
- When set Sweave.edt just opens an R console.
Download
R-Sweave.zip [30 KB]
Configuration component contributed by Gilbert Ritschard <gilbert.ritschard unige.ch>
|