|
RManagerFor old R-Sweave releases see belowThis package provides support for R, Sweave and knitr. R support is based on the RWinEdt stuff by Uwe Ligges. The support is here made available in a standard WinEdt session instead of running it in a limited stand alone WinEdt instance. PrerequisitesFor full functionality of the package, the following R libraries must be installed in your R system:
For interaction with R, it is better if you set R in sdi mode. Interaction in mdi mode is supported for English language only. For forward/inverse search you need a PDF reader (such as SumatraPDF) supporting it. InstallationThis package is not compatible with its predecessor R-Sweave, so, if you have it installed, you must uninstall it before installing. Open the macro file Install.edt in WinEdt, and execute it by choosing Macros | Execute Current Macro. After the installation is complete, it is recommended to carefully read the file Readme.txt that comes with the package for recommended post-install actions. UninstallationOpen the macro file Uninstall.edt in WinEdt (also available in %b\Uninstall\RManager folder), and then execute it by choosing Macros | Execute Current Macro. UsageA new menu R and a few drop-down toolbar buttons are added, which contain all available commands of the package. You can create a new R or Rnw document through the New drop-down button in the toolbar. Regarding the compilation of Rnw files, you have the possibility of choosing between Sweave and knitr, and then PDFLaTeX, XeLaTeX or LuaLaTeX. The compilers automatically patch the synctex file for forward/inverse search between Rnw and pdf files. The command Compile (F9 shortcut) executes the chain knitr -> PDFLaTeX, and it can be changed to Sweave through the command Select Weave Method. An 'Rscript' item is added in the Execution Modes dialog, in case one wants to customize the execution of Sweave and knitr. Apart from Rnw files, you can knit Rhtml, Rmd and Rrst files. In the first two cases, the resulting html file is shown after the compilation. A few commands are there to facilitate the insertion of R code, e.g. Insert Chunk inserts a new R chunk ready to be filled. Chunk labels are collected in the Tree interface for easier document navigation. See Readme.txt for more info. DownloadFor WinEdt 9.1: RManager_91.zip Configuration contributed by Gilbert Ritschard <gilbert.ritschard Old R-Sweave ReleasesFor WinEdt 5.6 or older: R-Sweave-55.zip [31 KB, last changed: 20 Aug 2012] For WinEdt 6.0: R-Sweave-6.zip [39 KB, last changed: 23 Nov 2012] For WinEdt 7.x: R-Sweave-7.zip [46 KB, last changed: 24 Mar 2014] For WinEdt 8.0-8.1: R-Sweave-8.zip [46 KB, last changed: 24 Mar 2014] For WinEdt 8.2: R-Sweave-82.zip [46 KB, last changed: 13 Jun 2014] For WinEdt 9.0: R-Sweave-9.zip [46 KB, last changed: 15 Aug 2014]
|