Skip to content

cleanr

1.4.0Package record

Helps You to Code Cleaner

0packages dependsuggested by 2
3.4Kdownloads / year
98.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.4.0
  • Omitted examples in documentation of unexported functions as requested by CRAN.
  • Bumped version due to fritools back on CRAN.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-24
  • ERROR12 OK, 1 ERROR2026-07-23
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-02
  • ERROR13 OK, 1 ERROR2026-04-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4.0
READMEYes · 45 wordsVignettesNoNEWSYes · 100% structured · mentions 1.4.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
16 (5 internal)includes a package overview page
Examples that run
100%10 run in a plain check
Exported functions with examples
83%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Also includes 1 demo script (run with demo())

Downloads

3.4K
CRAN downloads in the past year
Rank #11,199 · ~9/day · ~282/mo
Daily download trend is not available in this view yet.
37230 days
95090 days
3.4K1 year
Compare downloads with other packages →
Also on76 r2u10 autocran403 conda_forge

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
296Commits
4Commit identities
296 commits · Last activity 2023-08-15
Responsiveness
not measured
PracticesBeta

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 v3 (2026-09-26)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing cleanr adds 17 packages (8 with compiled code, 4.3 MB of source tarballs). Heaviest: fs 1.4 MB, rlang 766 KB, cli 629 KB.

Depends (1)
R >= 3.3.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer · added in 1.2.0

Maintainer since 1.1.2 (2016)

Listed in earlier versions (1)
Cullmann
no longer listed · 1.1.2 to 1.1.3
Releases (10)

Pick two releases to compare their code metrics.

  • 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
  • unarchivedReturned to CRAN
    2023-06-16
  • 1.4.0Latest
    record
    2023-06-16 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2022-09-04
    requires archived package 'fritools'
  • 1.3.5
    record
    2022-08-11 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.3.4
    record
    2021-11-14 · diff ↗
  • 1.3.3
    record
    2021-08-03 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.3.2
    record
    2021-05-11 · diff ↗
  • 1.3.1
    record
    2020-11-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.0
    record
    2020-01-09 · diff ↗
Show 7 earlier eventsHide 7 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 1.2.0
    record
    2019-03-22 · diff ↗ ·
    added 1 export
    check_package
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.1.3
    record
    2017-01-18 · diff ↗
  • 1.1.2
    record
    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

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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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