# Excellent R Code Format Package

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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.)**Quantitative Finance Collector**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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:

Quotation

formatR: format R code automatically, farewell to ugly R code

Below is a comparison before and after using FormatR.

**Before:**

**After:**

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

Tags – r

**Read the full post at Excellent R Code Format Package**.

To

**leave a comment**for the author, please follow the link and comment on their blog:**Quantitative Finance Collector**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.