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.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
Last updated from:70e1dedd9e. Checks:9 OK. Indexed: yes.
| Target | Result | Total time | Artifact |
|---|---|---|---|
| linux-devel-x86_64 | OK | 105 | |
| source / vignettes | OK | 139 | |
| linux-release-x86_64 | OK | 108 | |
| macos-devel-arm64 | OK | 153 | |
| macos-release-arm64 | OK | 90 | |
| windows-devel | OK | 66 | |
| windows-release | OK | 71 | |
| windows-oldrel | OK | 74 | |
| wasm-release | OK | 82 |
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 |
