Skip to content

constants

2022.0Package record

Reference on Constants, Units and Uncertainty

1packages depend
4.2Kdownloads / year
21.4%test coverage
13/13flavors OK

Overview

About

CODATA internationally recommended values of the fundamental physical constants, provided as symbols for direct use within the R language. Optionally, the values with uncertainties and/or units are also provided if the 'errors', 'units' and/or 'quantities' packages are installed. The Committee on Data for Science and Technology (CODATA) is an interdisciplinary committee of the International Council for Science which periodically provides the internationally accepted set of values of the fundamental physical constants. This package contains the "2022 CODATA" version, published on May 2024: Eite Tiesinga, Peter J. Mohr, David B. Newell, and Barry N. Taylor (2024) https://physics.nist.gov/cuu/Constants/.

Changes in 2022.0

Update to version 9.0, the 2022 CODATA recommended values.

Package versioning has been aligned with the CODATA versioning scheme.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.9 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 2022.0
READMEYes · 189 wordsVignettesNoNEWSYes · 100% structured · mentions 2022.0Citation fileNo
Help pages
4includes a package overview page
Examples that run
100%2 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
0%
Help pages citing references
25%

Downloads

4.2K
CRAN downloads in the past year
Rank #9,739 · ~12/day · ~353/mo
Daily download trend is not available in this view yet.
38430 days
1K90 days
4.2K1 year
Compare downloads with other packages →
Also on113 r2u10 autocran126 c2d4u

Repository

15Stars
0Forks
0Open issues
0Open PRs
5Releases
48Commits
1Commit identities
rr-packageconstantsphysicscran
48 commits · Last activity 2025-09-29
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-08-02 · 152026-07-07 · 15
PracticesBeta

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

Checks run against github.com/r-quantities/constants on 2026-10-22.

Continuous integration (1)
GitHub Actions
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-09-29

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing constants adds no packages beyond those that come with R.

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

Datasets

People & History

People (1)
Author, Copyright holder, Maintainer since 0.0.1 (2017)
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2022.0Latest
    record
    2025-09-29 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.1
    record
    2021-02-25 · diff ↗
  • 1.0.0
    record
    2020-11-11 · diff ↗ ·
    added 1 export
    syms_with_quantities
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.0.2
    record
    2018-01-08 · diff ↗
  • 0.0.1
    record
    2017-07-17
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-07-17
Total releases
5 / 9 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
43 KB / 2 files
Download size
53 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("constants")
Ucar, I. (2025). constants: Reference on Constants, Units and Uncertainty (Version 2022.0) [Computer software]. https://doi.org/10.32614/CRAN.package.constants

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

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