README.md

rfmt: A code formatter for R

The rfmt package is intended to improve the formatting of R code to aid readability (in the same mold as gofmt tool for Go, and clang-format for C/C++). It shares many of the objectives of Yihui Xie's formatR package, though with its more eleborate layout algorithm (documented in this technical report, also included in the package documentation) and general approach to code formatting, it aims to produce more ''aesthetically appealing'' results.

To use rfmt, you'll need to have a Python (v. 2.7 or later) installation available. If this is not the case, you can download one yourself from python.org.

The implementation of the formatter relies heavily on David Beazley's ply package, a copy of which is supplied with the package.



google/rfmt documentation built on May 17, 2019, 7:59 a.m.