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.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
Last updated from:70e1dedd9e. Checks:9 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 119 | ||
| source / vignettes | OK | 147 | ||
| linux-release-x86_64 | OK | 115 | ||
| macos-release-arm64 | OK | 75 | ||
| macos-oldrel-arm64 | OK | 106 | ||
| windows-devel | OK | 81 | ||
| windows-release | OK | 72 | ||
| windows-oldrel | OK | 67 | ||
| wasm-release | OK | 89 |
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 |
