formatR v1.7

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 Downloads from the RStudio CRAN mirror

Format R code automatically.

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

Functions in formatR

Name Description
usage Show the usage of a function
tidy_dir Format all R scripts under a directory, or specified R scripts
tidy_app A Shiny app to format R code
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
License GPL
URL https://github.com/yihui/formatR
BugReports https://github.com/yihui/formatR/issues
VignetteBuilder knitr
RoxygenNote 6.1.1
Encoding UTF-8
NeedsCompilation no
Packaged 2019-06-11 19:35:45 UTC; yihui
Repository CRAN
Date/Publication 2019-06-11 20:00:03 UTC

Include our badge in your README

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