Package: formatR 1.14.1

Yihui Xie

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

Authors:Yihui Xie [aut, cre], Ed Lee [ctb], Eugene Ha [ctb], Kohske Takahashi [ctb], Pavel Krivitsky [ctb]

formatR_1.14.1.tar.gz
formatR_1.14.1.zip(r-4.7)formatR_1.14.1.zip(r-4.6)formatR_1.14.1.zip(r-4.5)
formatR_1.14.1.tgz(r-4.6-any)formatR_1.14.1.tgz(r-4.5-any)
formatR_1.14.1.tar.gz(r-4.7-any)formatR_1.14.1.tar.gz(r-4.6-any)
formatR_1.14.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
formatR/json (API)
NEWS

# Install 'formatR' in R:
install.packages('formatR', repos = c('https://ar-puuk.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yihui/formatr/issues

On CRAN:

Conda:

code-formatter

14.90 score 261 stars 1.3k packages 1.5k scripts 131k downloads 8 exports 0 dependencies

Last updated from:70e1dedd9e. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK119
source / vignettesOK147
linux-release-x86_64OK115
macos-release-arm64OK75
macos-oldrel-arm64OK106
windows-develOK81
windows-releaseOK72
windows-oldrelOK67
wasm-releaseOK89

Exports:tidy_apptidy_dirtidy_evaltidy_filetidy_pipetidy_rstudiotidy_sourceusage

Dependencies:

formatR

Rendered fromformatR.Rmdusingknitr::rmarkdownon May 17 2026.

Last update: 2026-01-17
Started: 2013-08-01