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.5)formatR_1.14.1.zip(r-4.4)formatR_1.14.1.zip(r-4.3)
formatR_1.14.1.tgz(r-4.5-any)formatR_1.14.1.tgz(r-4.4-any)formatR_1.14.1.tgz(r-4.3-any)
formatR_1.14.1.tar.gz(r-4.5-noble)formatR_1.14.1.tar.gz(r-4.4-noble)
formatR_1.14.1.tgz(r-4.4-emscripten)formatR_1.14.1.tgz(r-4.3-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:

code-formatter

15.07 score 259 stars 1.2k packages 1.4k scripts 77k downloads 3 mentions 8 exports 0 dependencies

Last updated 1 years agofrom:819562627b. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 17 2025
R-4.5-winOKFeb 17 2025
R-4.5-macOKFeb 17 2025
R-4.5-linuxOKFeb 17 2025
R-4.4-winOKFeb 17 2025
R-4.4-macOKFeb 17 2025
R-4.3-winOKFeb 17 2025
R-4.3-macOKFeb 17 2025

Exports:tidy_apptidy_dirtidy_evaltidy_filetidy_pipetidy_rstudiotidy_sourceusage

Dependencies:

formatR

Rendered fromformatR.Rmdusingknitr::rmarkdownon Feb 17 2025.

Last update: 2022-03-31
Started: 2013-08-01