sponsor Vim development Vim logo Vim Book Ad

Vim-R-plugin2 : Plugin to work with R

 script karma  Rating 95/32, Downloaded by 927

created by
Jakson Aquino
 
script type
ftplugin
 
description
This filetype plugin uses screen to communicate with R and does not work on Microsoft Windows. The new functions are similar to what you can find in Tinn-R and ess mode of emacs. Johannes Ranke's plugin (vimscript #1048) was the starting point to the development of the plugin.

MAIN FEATURES:

   Communication with R.
   Omni completion for R objects.
   Indent R code.
   Small improvements in syntax highlight.

Screenshot: http://jalvesaq.googlepages.com/vimrplugin


USE: Please, read the plugin's documentation.

FILES:
  .vim
  |-- after
  |   |-- filetype.vim
  |   `-- syntax
  |       `-- r.vim
  |-- autoload
  |   `-- rcomplete.vim
  |-- bitmaps
  |   |-- r-close.xpm
  |   |-- r-control-clear.png
  |   |-- r-control-clearall.png
  |   |-- r-control-listspace.png
  |   |-- r-send-block.png
  |   |-- r-send-file.png
  |   |-- r-send-function.png
  |   |-- r-send-line.png
  |   |-- r-send-paragraph.png
  |   |-- r-send-selection.png
  |   |-- r-start.xpm
  |   |-- ricon.png
  |   `-- ricon.xbm
  |-- doc
  |   `-- r-plugin.txt
  |-- ftplugin
  |   |-- r.vim
  |   |-- rhelp.vim -> r.vim
  |   `-- rnoweb.vim -> r.vim
  |-- indent
  |   `-- r.vim
  `-- tools
      |-- rargs.R
      |-- rfunctions
      |-- rpager.sh
      |-- rtags
      |-- rtags.R
      |-- rvimplot.R
      `-- rvimsource.R

 
install details
Install screen and R.

You need at least the options "filetype plugin on" and  "filetype indent on" in your ~/.vimrc.

Create your ~/.vim directory if you do not have it yet:

   mkdir -p ~/.vim

Make a backup of your ~/.vim directory because existing files will be replaced in the next step.

Uncompress the tarball:

   tar -xvzf vim-r-plugin2-*.tar.gz -C ~/.vim

Start Vim and build the tags file for the documentation:

   :helptags ~/.vim/doc

Update the list of objects for omni completion and syntax highlight (see the help for :RUpdateObjList for details).

Read the plugin documentation to learn how to use and customize it (":h vim-r-plugin").
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-r-plugin2-091223.tar.gz 091223 2009-12-23 7.0 Jakson Aquino * Changes in omni completion: now using two tags files, one for .GlobalEnv and other for all other environments. The command :RUpdateObjList must be used to update the list of objects that are not in .Globalenv. Arguments of functions are displayed in a scratch window.
* Syntax highlight for R functions. The command :RUpdateObjList must be used to update the list of functions to be highlighted.
vim-r-plugin2-091016.tar.gz 091016 2009-10-16 7.0 Jakson Aquino * The plugin now can run together with screen.vim, thanks to Eric Van Dewoestine, the author of screen.vim, who added script integration to screen.vim.
* Andy Choens has made many improvements on the documentation.
* Added the possibility of custom key binding creation to call any R function with the word under cursor as argument.
* The key bindings related with Sweave are activated even if the file type is not rnoweb.
* Replaced <Leader> with <LocalLeader> in the key bindings.
* Added "Send Paragraph" commands.
vim-r-plugin2-091004.tar.gz 091004 2009-10-05 7.0 Jakson Aquino * José Cláudio Faria has began to work in the project as co-author.
* Some ideas from Tinn-R project were ported to the plugin.
* The main menu has new items and the toolbar new icons.
* Documentation improvements.
vim-r-plugin2-090828.tar.gz 090828 2009-08-28 7.0 Jakson Aquino * Faster startup.
* Better support for Rnoweb files: the cursor goes to '^<<' if the sent line is '^@$'.
vim-r-plugin2-090811.tar.gz 090811 2009-08-12 7.0 Jakson Aquino * Now use screen instead of funnel.pl. The bugs and limitations related with funnel.pl are solved.
* Deleted key binding for R-devel.
* Automatically detect available terminal emulators and choose one of them.
* By default, no longer calls help.start() the first time that <C-H> is pressed.
vim-r-plugin2-090810.tar.gz 090810 2009-08-10 7.0 Jakson Aquino * Added R icons for some terminal emulators.
* Removed the script open-gvim-here. You may use Vim's option autochdir.
* Added option g:vimrplugin_term.
* Improved indentation script.
* Changed key binding from <S-Enter>, which doesn't work in any terminal, to <M-Enter>, which at least works in xterm.
vim-r-plugin2-090610.tar.gz 090610 2009-06-11 7.0 Jakson Aquino The options expandtab, shiftwidth and tabstop are no longer set by the plugin. Better word detection before calling R's help(). Fixed bug in underscore replacement. Fixed small bug in code indentation. Added scipt rpager.sh. Added two new plugin options: no underscore replacement and fixed name for the pipe file instead of random one.
vim-r-plugin2-090523.tar.gz 090523 2009-05-23 7.0 Jakson Aquino * Key bindings now are customizable.
* Default key binding for calling R's args() changed to <S-F1>.
* New R script rargs.R gives better results for generic functions than R's args() called directly.
vim-r-plugin2-090519.tar.gz 090519 2009-05-20 7.0 Jakson Aquino * Don't send large blocks of code to R to avoid xterm freezing.
* Automatically call help.start() after <C-H> is pressed for the first time, and wait 4 seconds for the browser start before calling R's help(). These features are customizable.
* Fixed tags file script.
vim-r-plugin2-090516.tar.gz 090516 2009-05-16 7.0 Jakson Aquino * Added documentation.
* Added ability to send function to R, revert the automatic convertion of "_" into "<-" and call R's help().
* Added archive with some files to ease desktop integration, if desired.
vim-r-plugin2-090507.tar.gz 090507 2009-05-08 7.2 Jakson Aquino Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo