Skip to content

formatdown

0.2.0Package record

Formatting Numbers in 'rmarkdown' Documents

0packages dependsuggested by 1
5.3Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

Provides a small set of tools for formatting numbers in R-markdown documents. Convert a numerical vector to character strings in power-of-ten form, decimal form, or measurement-units form; convert symbols for chemical isotopes from hyphenated form to nuclear form; all are math-delimited for rendering as inline equations. Can also convert text into math-delimited text to match the font face and size of math-delimited numbers. Useful for rendering single numbers in inline R code chunks and for rendering columns in tables.

Changes in 0.2.0

new features

  • New format_nucl() formats chemical isotopes in nuclear notation.
  • formatdown_options() gains the Z and warn arguments used by format_nucl().

minor improvements and fixes

  • format_numbers(0, format = "sci") now correctly yields a zero without power-of-ten notation. Likewise for format = "engr" (#10).
  • In formatdown_options(), multiply_mark can now be set to "\\cdot" (center dot), often used when decimal_mark is a comma.

<!-- MAJOR version when you make incompatible API changes -->

<!-- MINOR version add functionality in a backwards-compatible manner -->

<!-- PATCH version backwards-compatible bug fixes -->

<!-- DEV 900x development -->

<!-- ## Breaking changes -->

<!-- ## New features -->

Show all changes in 0.2.0Hide the rest of the changes in 0.2.0

<!-- ## Minor improvements and fixes -->

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 810 wordsVignettesYes · 2 · staticNEWSYes · 67% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
13 (1 internal)includes a package overview page
Examples that run
100%7 run in a plain check
Exported functions with examples
100%
Documented parameters
91%
Return-value docs
100%
Help pages citing references
0% with a bibliography file

Downloads

5.3K
CRAN downloads in the past year
Rank #7,811 · ~14/day · ~441/mo
Daily download trend is not available in this view yet.
37530 days
1.2K90 days
5.3K1 year
Compare downloads with other packages →
Also on87 r2u3 autocran

Repository

8Stars
0Forks
0Open issues
0Open PRs
5Releases
272Commits
1Commit identities
272 commits · Last activity 2026-05-06 · Default branch at 0.2.0.9001, ahead of CRAN 0.2.0 (checked 2026-10-25)
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
63
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2024-10-10 · 82026-07-07 · 8
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/graphdr/formatdown on 2026-10-25.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (1)
Code of conduct
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-05-06

pkgdown site last built 2026-05-06

CRAN release process (2)
cran-comments.mdrevdep/
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing formatdown adds 7 packages (5 with compiled code, 8.7 MB of source tarballs). Heaviest: data.table 5.7 MB, Rcpp 1.8 MB, wrapr 552 KB.

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

Datasets

People & History

People (1)
Author, Maintainer since 0.1.1 (2022)
Releases (5)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-05-02 · current release · diff ↗ ·
    removed 3 exports
    format_decimal, format_power, format_units
    added 1 export
    format_nucl
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.4
    record
    2024-05-08 · diff ↗ ·
    added 5 exports
    format_dcml, format_engr, format_numbers, format_sci, formatdown_options
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.3
    record
    2024-03-15 · diff ↗ ·
    added 1 export
    format_text
  • 0.1.2
    record
    2023-06-22 · diff ↗ ·
    added 2 exports
    format_decimal, format_units
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1
    record
    2022-11-21
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-11-21
Total releases
5 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
4.6 KB / 5 files
Download size
48 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("formatdown")
Layton, R. (2026). formatdown: Formatting Numbers in 'rmarkdown' Documents (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.formatdown

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 formatdown version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

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