Quantitative finance collector
C++ Matlab VBA/Excel Java Mathematica R/Splus Net Code Site Other
Jul 4

Excellent R Code Format Package

Posted by abiao at 16:38 | Code » R/Splus | Comments(1) | Reads(11533)
I have been looking for this type of package for several days, and luckily found it today. Unquestionable R is powerful, however, R programming is unfriendly as far as I concern, mainly due to the lack of format shortcut, which makes the R codes rather ugly. (It is an absolute advantage of Matlab, for example, ctrl+R for comment, ctrl+T for uncomment, ctrl+I for smart indent, etc.)

FormatR is the package for tidying R source code, although it is less convenient to use than the straightforward shortcuts in Matlab, this package is good enough for me, what is it for? as the title suggest:
formatR: format R code automatically, farewell to ugly R code

Below is a comparison before and after using FormatR.
Open in new window

Open in new window

Download the package at http://cran.r-project.org/web/packages/formatR/index.html

Very neat and specific, things are in the proper place.
crossfire legends cheats
Pages: 1/1 First page 1 Final page
Add a comment
Enable HTML
Enable UBB
Enable Emots
Nickname   Password   Optional
Site URI   Email   [Register]