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

1.14 GPL 1 个版本
安装
install.packages("formatR")
remotes::install_cran("formatR")
版本列表
1.14 2023-01-17