Format R Code Automatically
Format all R scripts under a directory, or specified R scripts
Insert output to source code
Substitute the magrittr
pipe with R's native pipe operator
Reformat R code in RStudio IDE
Reformat R code
Show the usage of a function
A Shiny app to format R code
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()).