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:
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.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
Last updated 11 months agofrom:819562627b. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 19 2024 |
R-4.5-win | OK | Nov 19 2024 |
R-4.5-linux | OK | Nov 19 2024 |
R-4.4-win | OK | Nov 19 2024 |
R-4.4-mac | OK | Nov 19 2024 |
R-4.3-win | OK | Nov 19 2024 |
R-4.3-mac | OK | Nov 19 2024 |
Exports:tidy_apptidy_dirtidy_evaltidy_filetidy_pipetidy_rstudiotidy_sourceusage
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
A Shiny app to format R code | tidy_app |
Format all R scripts under a directory, or specified R scripts | tidy_dir tidy_file |
Insert output to source code | tidy_eval |
Substitute the 'magrittr' pipe with R's native pipe operator | tidy_pipe |
Reformat R code in RStudio IDE | tidy_rstudio |
Reformat R code | tidy_source |
Show the usage of a function | usage |