yihui/formatR — Issue #14: Recommend/implement as a style guide?
Author: cboettig
Created: 2011-12-12 21:12:49+00:00
State: open

Great package. It would be quite nice to use this to check/make code conform to a standard style guide for R, such as [Hadley's recommendations](https://github.com/hadley/devtools/wiki/Style). Some of these might just trigger warnings that the user could fix manually.

It's nice to see that the changes you implement are consistent with those recommendations, might be a selling point for the package. Looks like the package focuses on spacing, but would be cool to have it enforce line length and brace habits as well. I suppose ideally these would be options you could include,eg tidy("mycode.R", spaces=T, braces=T, linelength=T, ..,)

anyway, brilliant work.