Skip to content

formatR

Format R Code Automatically

v1.14 · Jan 17, 2023 · GPL

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

Downloads

CRAN

120.9K

Last 30 days

313th

377.8K

Last 90 days

1.3M

Last year

Trend: -3.9% (30d vs prior 30d)

r2u CRAN

2K

Last 30 days

6.1K

Last 90 days

19.9K

Last year

Trend: +19.3% (30d vs prior 30d)

autoCRAN

15

Last 7 days

112

Last 30 days

3

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (101)

Dependency Network

Dependencies Reverse dependencies HKRbook RFormatter RaSEn Rd2roxygen ScriptMapR automagic cohortBuilder datacleanr dbGaPCheckup explor funspotr ggThemeAssist glmtrans hipecR jaggR +86 more reverse deps formatR

Version History

43 tracked
new 1.14 Mar 10, 2026
updated 1.14 ← 1.13 diff Jan 16, 2023
updated 1.13 ← 1.12 diff Dec 21, 2022
updated 1.12 ← 1.11 diff Mar 30, 2022
updated 1.11 ← 1.10 diff May 31, 2021
updated 1.10 ← 1.9 diff May 24, 2021
updated 1.9 ← 1.8 diff Apr 13, 2021
updated 1.8 ← 1.7 diff Mar 11, 2021
updated 1.7 ← 1.6 diff Jun 10, 2019
updated 1.6 ← 1.5 diff Mar 4, 2019
updated 1.5 ← 1.4 diff Apr 25, 2017
updated 1.4 ← 1.3 diff May 8, 2016
updated 1.3 ← 1.2.1 diff Mar 4, 2016
updated 1.2.1 ← 1.2 diff Sep 17, 2015
updated 1.2 ← 1.1 diff Apr 20, 2015