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

Getting started

Package details

Maintainer
LicenseGPL
Version1.14.1
URL https://github.com/yihui/formatR
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("yihui/formatR")
yihui/formatR documentation built on Jan. 28, 2024, 1:07 p.m.