README.md

formatFileAddin

This is an addin for RStudio that allows formatting the currently selected R file with only a keyboard shortcut. No need to do Ctrl+A, Ctrl+Shift+A anymore!

Also, this uses formatR which is a superior formatter to the RStudio built-in.

Installation

First install formatR and devtools:

> install.packages(c("devtools", "formatR"))

And then install this package:

> devtools::install_github("ontherunvaro/formatFileAddin")

Usage

You can:

You can either select a code chunk beforehand to format only that chunk, or select nothing in order to have the whole file formatted.



ontherunvaro/formatFileAddin documentation built on May 29, 2019, 7:34 a.m.