

Before you start, make sure you have your R installation done and that you know how to access the executable.
#How to use sublime text install
The end result is an R script and console side-by-side where you can run the entire or highlighted bits of your R code in the terminal (as below).Ĭonfiguring this setup is super easy, and only requires you to install SendCode and Terminus via the Command Palette in Sublime Text. SendCode, as its name suggests, simply sends code to a terminal, and Terminus is an intergrated, cross-platform terminal that you can have in a view tab.

Searching online, I found that using a combination of 2 packages (SendCode and Terminus) was the best way forward to developing R in Sublime Text 3. So when I had to develop some code in R for my work, I wanted to use this IDE to run blocks of code, build entire scripts and easily commit them to a shared repo with Git. It has a clean interface, it is easy to configure and is reasonably ligthweight. If you try something and it doesn’t work, just let me know in the comments and I’ll make a note of it here.I use Sublime Text as my IDE of choice for all things not Python.

Most of what I talk about can be applied to Sublime Text 2 as well, although I’m not 100% sure all of the settings and functionality are identical. I hope you enjoyed the video and have picked up a few good tips for tweaking the settings in Sublime Text. txt), because it allows you to keep all the text on the screen, but not worry about adding extra line numbers. Word wrapping is a fantastic feature, especially if you’re working on a markdown file (. "translate_spaces_to_tabs": true Word Wrapping Luckily, Sublime Text doesn’t hold you to one type, meaning you can set a default and then change it per file. Two spaces, two tabs, four spaces, four tabs, nobody can agree. Indentation is something that’s always in huge debate amongst developers. To make it stop at the bottom, you’ll need to change the scroll_past_end setting… "scroll_past_end": true Indentation – Tabs, Spaces… Stopping the code from scrolling up past the bottom of the screen can sometimes be pretty handy. "line_padding_bottom": 4 Custom Scroll Height I’ve found that a value of 4 is a good place to start, but you may want the spacing a little tighter, depending on your preference. Line spacing is controlled by two parameters in Sublime Text, line_padding_top and line_padding_bottom. The second option is to manually change the setting in your user settings file, which you can find in Preferences -> Settings – Default. This will automatically change the save your desired font size. The first is to hold ctrl/ cmd and use the scroll button. To change the font size in Sublime Text, you have two options. To make things easier, the written version has code snippets you can copy and paste directly into Sublime Text.

Below you can find the video and a written version of what I talk about in the video. I also go through the default settings and pick out a few things you might want to change yourself. In this quick video, I go over a few Sublime Text 3 tweaks I use in my daily workflow to help streamline the editor to my needs. Sublime Text is a fantastic editor and very well-known for its huge amount of customisation options.
