We’re pleased to announce that a new release of RStudio (v0.99.878) is available for download now. Highlights of this release include:
Support for registering custom RStudio Addins.
R Markdown editing improvements including outline view and inline UI for chunk execution.
Support for multiple source windows (tear editor tabs off main window).
Pane zooming for working distraction free within a single pane.
Editor and IDE keyboard shortcuts can now be customized.
New Emacs keybindings mode for the source editor.
Support for parameterized R Markdown reports.
There are lots of other small improvements across the product, check out the release notes for full details.
RStudio Addins provide a mechanism for executing custom R functions interactively from within the RStudio IDE—either through keyboard shortcuts, or through the Addins menu. Coupled with the rstudioapi package, users can now write R code to interact with and modify the contents of documents open in RStudio.
An addin can be as simple as a function that inserts a commonly used snippet of text, and as complex as a Shiny application that accepts input from the user and uses it to transform the contents of the active editor. The sky is the limit!
Here’s an example of addin that enables interactive subsetting of a data frame with live preview:
This addin is implemented using a Shiny Gadget (see the source code for more details). RStudio Addins are distributed as R packages. Once you’ve installed an R package that contains addins, they’ll be immediately become available within RStudio.
You can learn more about using and developing addins here: http://rstudio.github.io/rstudioaddins/.
We’ve made a number of improvements to R Markdown authoring. There’s now an optional outline view that enables quick navigation across larger documents:
We’ve also added inline UI to code chunks for running individual chunks, running all previous chunks, and specifying various commonly used knit options:
There are two ways to open a new source window:
Pop out an editor: click the Show in New Window button in any source editor tab.
Tear off a pane: drag a tab out of the main window and onto the desktop; a new source window will be opened where you dropped the tab.
You can have as many source windows open as you like. Each source window has its own set of tabs; these tabs are independent of the tabs in RStudio’s main source pane.
You can now customize keyboard shortcuts in RStudio – you can bind keys to execute RStudio application commands, editor commands, or even user-defined R functions.
Access the keyboard shortcuts by clicking
Tools -> Modify Keyboard Shortcuts...:
This will present a dialog that enables remapping of all available editor commands (commands that affect the current document’s contents, or the current selection) and RStudio commands (commands whose actions are scoped beyond just the current editor).
We’ve introduced a new keybindings mode to go along with the default bindings and Vim bindings already supported. Emacs mode provides a base set of keybindings for navigation and selection, including:
C-f to move the cursor up, down left and right by characters
M-f to move left and right by words
C-e to navigate to the start, or end, of line;
C-k to ‘kill’ to end of line, and
C-y to ‘yank’ the last kill,
C-r to initiate an Emacs-style incremental search (forward / reverse),
C-Space to set/unset mark, and
C-w to kill the marked region.
There are some additional keybindings that Emacs Speaks Statistics (ESS) users might find familiar:
C-c C-v displays help for the object under the cursor,
C-c C-n evaluates the current line / selection,
C-x b allows you to visit another file,
M-C-a moves the cursor to the beginning of the current function,
M-C-e moves to the end of the current function,
C-c C-f evaluates the current function.
We’ve also introduced a number of keybindings that allow you to interact with the IDE as you might normally do in Emacs:
C-x C-n to create a new document,
C-x C-f to find / open an existing document,
C-x C-s to save the current document,
C-x k to close the current file.
We’ve introduced a number of significant enhancements to RStudio Server Pro in this release, including:
See the updated RStudio Server Pro page for additional details, including a set of videos which demonstrate the new features.
RStudio has many tools for both R and Python programmers. In this blog post, we’ll showcase various ways that you can program in Python with RStudio tools.
Welcome to the RStudio Community Monthly Events Roundup! In this post, we update you on the great community events happening at RStudio.