ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

R Tools

by karthik ST2

Sublime text package for R

Details

  • 2013.10.05.22.44.34
  • github.​com
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 3K
  • Win 929
  • Mac 2K
  • Linux 465
Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Rtools for Sublime Text 2

This package provides a couple of useful tools for people using Sublime Text 2 to code in R. It has the key bindings to send a selection of code to R, and can also generate Roxygen documentation templates for any function quickly (select first line of a function till the first {, press keybinding and it will generate a template with @params from the function definition).

We plan to add functionality of formatR so you can format/tidy code inline to the next version. Please suggest other feature requests as issues (preferably tagged as a feature request).

Installation

Installing via Package Control: The fastest way to install is via the command palette (open command palette, type in Install Packages, and once list is populated look for R tools)

If you don't have package control installed, the just clone this repo into your Sublime Text 2/packages directory

git clone git@github.com:karthikram/Rtools.git

Customization

  1. Since I am on OSX and use R64.app, I have set it up that way. If you prefer to use 32-bit R, replace R64 with R in the Rtools.py file. In windows (untested), you should set it to the R.exe file you wish to use.

  2. I have included a basic roxygen template to populate the section above each file. If you prefer to have fewer or more fields, I will move it to a settings file in a future version. For you you can edit Rtools.py or post it as an issue and I will update it.

Key bindings

To preserve or change these key bindings, copy them to your Key Bindings - User file.