formatR: Format R Code Automatically
Version 1.5

Provides a function tidy_source() to format R source code. Spaces and indent will be added to the code automatically, and comments will be preserved under certain conditions, so that R code will be more human-readable and tidy. There is also a Shiny app as a user interface in this package (see tidy_app()).

Package details

AuthorYihui Xie [aut, cre], Eugene Ha [ctb], Kohske Takahashi [ctb], Ed Lee [ctb]
Date of publication2017-04-25 23:31:46 UTC
MaintainerYihui Xie <>
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the formatR package in your browser

Any scripts or data that you put into this service are public.

formatR documentation built on May 29, 2017, 11:42 a.m.