Package: formatR 1.14.1

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.6)formatR_1.14.1.zip(r-4.5)formatR_1.14.1.zip(r-4.4)
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.6-any)formatR_1.14.1.tar.gz(r-4.5-any)
formatR_1.14.1.tgz(r-4.5-emscripten)
formatR.pdf |formatR.html
formatR/json (API)
NEWS

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

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

On CRAN:

Conda:

code-formatter

15.17 score 259 stars 1.2k packages 1.3k scripts 100k downloads 3 mentions 8 exports 0 dependencies

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

TargetResultTotal timeArtifact
linux-devel-x86_64OK105
source / vignettesOK139
linux-release-x86_64OK108
macos-devel-arm64OK153
macos-release-arm64OK90
windows-develOK66
windows-releaseOK71
windows-oldrelOK74
wasm-releaseOK82

Exports:tidy_apptidy_dirtidy_evaltidy_filetidy_pipetidy_rstudiotidy_sourceusage

Dependencies:

formatR

Rendered fromformatR.Rmdusingknitr::rmarkdownon Feb 16 2026.

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

  • Image