Base R Code Formatter
Overview
A minimal R code formatter following base R style conventions. Formats R code with consistent spacing, indentation, and structure.
wrap_long_calls()re-packs an already-wrapped call so its first argument lands on the call line rather than a hanging continuation (#30).- Close the gap between a collapsed function signature and a bare single-expression body (#29).
rformat_file()andrformat_dir()no longer append a blank line at end of file (#34).- Joining
elseto a preceding closing brace no longer leaves a blank line before a wrapped continuation on the first formatting pass.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK6 OK2026-03-10
Documentation
- Help pages
- 37 (34 internal)
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Issues over time
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/cornball-ai/rformat on 2026-10-18.
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-01-19Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdCommits: at least 20 crediting it in the message
- Claude CodePull requests: 1 from outside contributors, first on 2026-03-02
- Claude Opus 4.519 commits · Jan to Feb 2026
- Claude Opus 4.61 commit · Feb 2026
Dependencies
Installing rformat adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.1.02026-03-09
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-09
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 102 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rformat")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.
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.