formatR

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

Tests Vignettes
shiny

Available Snapshots

This version of formatR can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (1)
  • R
  • Suggests (5)
  • rstudioapi
  • shiny
  • testit
  • rmarkdown
  • knitr
  • Version History