Skip to content

cleanr

1.4.0

Helps You to Code Cleaner

2packages depend
3.2Kdownloads / year
98.0%test coverage
13/13checks pass

Overview

About
Maintained by Andreas Dominik CullmannFirst published 2016-12-2110 releasesCRAN page ↗GitLab ↗

Check your R code for some of the most common layout flaws. Many tried to teach us how to write code less dreadful, be it implicitly as B. W. Kernighan and D. M. Ritchie (1988) <ISBN:0-13-110362-8> in 'The C Programming Language' did, be it explicitly as R.C. Martin (2008) <ISBN:0-13-235088-2> in 'Clean Code: A Handbook of Agile Software Craftsmanship' did. So we should check our code for files too long or wide, functions with too many lines, too wide lines, too many arguments or too many levels of nesting. Note: This is not a static code analyzer like pylint or the like. Checkout https://cran.r-project.org/package=lintr instead.

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.06
98.0%
Coverage · measured lines
100%
Documentation · exports
4
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-24
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-23
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-02
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-01
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 45 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

3.2K
CRAN downloads in the past year
Rank #13,412 · ~9/day · ~271/mo
Daily download trend is not available in this view yet.
20530 days
75390 days
3.2K1 year
Compare downloads with other packages →
Also on105 r2u34 autocran496 conda_forge

Repository

Repository practices

Upstream repositoryBeta

Repository gitlab.com/fvafrcu/cleanr is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.3.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer · added in 1.2.0
Authors (1)
Author, Maintainer · added in 1.2.0
Listed in earlier versions (1)
no longer listed · 1.1.2 to 1.1.3
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.4.0Latest
    2023-06-16 · current release · diff ↗
  • unarchivedReturned to CRAN
    2023-06-16
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2022-09-04
    requires archived package 'fritools'
  • 1.3.5
    2022-08-11 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.3.4
    2021-11-14 · diff ↗
  • 1.3.3
    2021-08-03 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.3.2
    2021-05-11 · diff ↗
  • 1.3.1
    2020-11-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.0
    2020-01-09 · diff ↗
Show 7 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 1.2.0
    2019-03-22 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.1.3
    2017-01-18 · diff ↗
  • 1.1.2
    2016-12-21
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-12-21
Total releases
10 / 10 yrs
License
BSD_2_clause + file LICENSE OSI
Minimum R
≥ 3.3.0
Download size
159 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cleanr")
Cullmann, A. D. (2023). cleanr: Helps You to Code Cleaner (Version 1.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.cleanr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cleanr version 1.4.0 [Data set]. HJJB, LLC. Data release v2026-08-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy