formatR v1.5

0

Monthly downloads

0th

Percentile

Format R Code Automatically

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()).

Readme

formatR

Build Status

Format R code automatically.

See the package homepage http://yihui.name/formatR for more information.

Functions in formatR

Name Description
usage Show the usage of a function
tidy_app A Shiny app to format R code
tidy_dir Format all R scripts under a directory, or specified R scripts
tidy_eval Evaluate R code and mask the output by a prefix
tidy_source Reformat R code while preserving blank lines and comments
No Results!

Vignettes of formatR

Name
formatR.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2017-04-26
License GPL
URL https://yihui.name/formatR
BugReports https://github.com/yihui/formatR/issues
VignetteBuilder knitr
RoxygenNote 6.0.1
NeedsCompilation no
Packaged 2017-04-25 16:06:05 UTC; yihui
Repository CRAN
Date/Publication 2017-04-25 23:31:46 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/formatR)](http://www.rdocumentation.org/packages/formatR)