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()).

Version: 1.12
Depends: R (≥ 3.2.3)
Suggests: rstudioapi, shiny, testit, rmarkdown, knitr
Published: 2022-03-31
Author: Yihui Xie ORCID iD [aut, cre], Ed Lee [ctb], Eugene Ha [ctb], Kohske Takahashi [ctb], Pavel Krivitsky [ctb]
Maintainer: Yihui Xie <xie at yihui.name>
BugReports: https://github.com/yihui/formatR/issues
License: GPL-2 | GPL-3 [expanded from: GPL]
URL: https://github.com/yihui/formatR
NeedsCompilation: no
Materials: NEWS
In views: ReproducibleResearch
CRAN checks: formatR results

Documentation:

Reference manual: formatR.pdf
Vignettes: An Introduction to formatR

Downloads:

Package source: formatR_1.12.tar.gz
Windows binaries: r-devel: formatR_1.12.zip, r-release: formatR_1.12.zip, r-oldrel: formatR_1.12.zip
macOS binaries: r-release (arm64): formatR_1.12.tgz, r-oldrel (arm64): formatR_1.12.tgz, r-release (x86_64): formatR_1.12.tgz, r-oldrel (x86_64): formatR_1.12.tgz
Old sources: formatR archive

Reverse dependencies:

Reverse imports: automagic, cohortBuilder, datacleanr, distreg.vis, explor, ggThemeAssist, glmtrans, jaggR, lambda.r, multiverse, mustashe, npcs, pbixr, RaSEn, Rd2roxygen, RFormatter, rscc, schtools, ScriptMapR, shidashi, shinyChakraUI, snahelper
Reverse suggests: ASMap, asteRisk, autoharp, BASS, condTruncMVN, conText, CoreGx, coveffectsplot, cytometree, dce, DegNorm, DeLorean, dfadjust, DirichletReg, distantia, dynamichazard, elevatr, gen3sis, GenVisR, GlarmaVarSel, googleAnalyticsR, googleAuthR, GWAS.BAYES, hdf5r, hsrecombi, kitagawa, knitr, lifecontingencies, loon, lsasim, madness, manifestoR, matrixNormal, Mega2R, memoria, miWQS, MODIStsp, mosaic, MotifDb, motmot, MultiGlarmaVarSel, NMdata, nph, pareg, paxtoolsr, pez, PhenotypeSimulator, plinkQC, ProjectTemplate, prospectr, psd, pvar, quanteda, rEDM, resemble, rhierbaps, riskCommunicator, sadists, SANTA, scriptexec, ShiftShareSE, shinyMonacoEditor, SignacX, simstudy, sketchy, slgf, socialmixr, SoupX, summarytools, tikzDevice, trena, upsetjs, virtualPollen

Linking:

Please use the canonical form https://CRAN.R-project.org/package=formatR to link to this page.