Other packages > Find by keyword >

formatR  

Format R Code Automatically
View on CRAN: Click here


Download and install formatR package within the R console
Install from CRAN:
install.packages("formatR")

Install from Github:
library("remotes")
install_github("cran/formatR")

Install by package version:
library("remotes")
install_version("formatR", "1.14")



Attach the package and use:
library("formatR")
Maintained by
Yihui Xie
[Scholar Profile | Author Map]
First Published: 2010-03-22
Latest Update: 2023-01-17
Description:
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()).
How to cite:
Yihui Xie (2010). formatR: Format R Code Automatically. R package version 1.14, https://cran.r-project.org/web/packages/formatR. Accessed 13 Apr. 2025.
Previous versions and publish date:
0.1-0 (2010-03-22 10:49), 0.1-1 (2010-03-26 12:17), 0.1-2 (2010-04-03 09:59), 0.1-3 (2010-04-11 08:23), 0.1-4 (2010-04-22 08:20), 0.1-5 (2010-12-03 09:32), 0.1-6 (2011-01-06 21:36), 0.1-7 (2011-01-08 19:31), 0.1-8 (2011-01-10 08:46), 0.1-9 (2011-01-16 10:37), 0.2-0 (2011-02-22 09:08), 0.2-1 (2011-03-31 10:56), 0.2-2 (2011-05-20 14:05), 0.2-3 (2011-08-12 07:10), 0.2-4 (2011-09-29 13:28), 0.3-1 (2011-10-02 09:31), 0.3-2 (2011-10-26 20:43), 0.3-3 (2011-11-19 10:56), 0.3-4 (2011-11-21 09:06), 0.4 (2012-04-02 09:22), 0.5 (2012-06-22 07:42), 0.6 (2012-07-13 07:29), 0.7 (2012-12-02 10:09), 0.8 (2013-06-18 07:40), 0.9 (2013-08-05 23:42), 0.10 (2013-10-26 09:48), 1.0 (2014-08-25 00:55), 1.1 (2015-03-29 08:48), 1.2.1 (2015-09-18 08:58), 1.2 (2015-04-21 08:55), 1.3 (2016-03-05 09:20), 1.4 (2016-05-09 17:52), 1.5 (2017-04-26 01:31), 1.6 (2019-03-05 20:00), 1.7 (2019-06-11 22:00), 1.8 (2021-03-12 23:10), 1.9 (2021-04-14 17:30), 1.10 (2021-05-25 17:20), 1.11 (2021-06-01 18:40), 1.12 (2022-03-31 22:20), 1.13 (2022-12-22 07:50)
Other packages that cited formatR R package
View formatR citation profile
Other R packages that formatR depends, imports, suggests or enhances
Complete documentation for formatR
Functions, R codes and Examples using the formatR R package
Some associated functions: tidy_app . tidy_dir . tidy_eval . tidy_pipe . tidy_rstudio . tidy_source . usage . 
Some associated R codes: eval.R . shiny.R . tidy.R . usage.R . utils.R .  Full formatR package functions and examples
Downloads during the last 30 days
03/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/0604/0704/0804/0904/1004/11Downloads for formatR1000150020002500300035004000450050005500TrendBars

Today's Hot Picks in Authors and Packages

COMPoissonReg  
Conway-Maxwell Poisson (COM-Poisson) Regression
Fit Conway-Maxwell Poisson (COM-Poisson or CMP) regression models to count data (Sellers & Shmueli, ...
Download / Learn more Package Citations See dependency  
ggprism  
A 'ggplot2' Extension Inspired by 'GraphPad Prism'
Provides various themes, palettes, and other functions that are used to customise ggplots to look l ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
SPOTMisc  
Misc Extensions for the "SPOT" Package
Implements additional models, simulation tools, and interfaces as extensions to 'SPOT'. It provides ...
Download / Learn more Package Citations See dependency  
optimParallel  
Parallel Version of the L-BFGS-B Optimization Method
Provides a parallel version of the L-BFGS-B method of optim(). The main function of the package is o ...
Download / Learn more Package Citations See dependency  
MLeval  
Machine Learning Model Evaluation
Straightforward and detailed evaluation of machine learning models. 'MLeval' can produce receiver op ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,867

Author Associations

24,013

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA