Printing Floating Point Numbers in a Human-Friendly Format
Overview
Print vectors (and data frames) of floating point numbers using a non-scientific format optimized for human readers. Vectors of numbers are rounded using significant digits, aligned at the decimal point, and all zeros trailing the decimal point are dropped. See: Wright (2016). Lucid: An R Package for Pretty-Printing Floating Point Numbers. In JSM Proceedings, Statistical Computing Section. Alexandria, VA: American Statistical Association. 2270-2279.
- Fix CRAN check issues with .Dim etc.
From NEWS.md in the release
Install
Health
ERRORtestsr-devel-linux-x86_64-fedora-clang
Running ‘testthat.R’ [3s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(lucid)
>
> test_check("lucid")
id P1 P2 P3
1 A a -1 3.3175e-140
2 B b 0 1.0637e-165
3 C c 1 1.1279e-157
id P1 P2
1 A a -1
2 B b 0
3 C c 1
P3
1 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000332
2 0
3 0
effect variance stddev
(Intercept) 615.3 24.81
Residual 16.17
...[truncated]...
g::eval_bare(expr, quo_get_env(quo))
4. └─lucid::vc(m1l)
── Error ('test_vc.r:64:3'): glmer ─────────────────────────────────────────────
Error in `vc(m1g)`: cannot open file '/tmp/RtmpQbPnIJ/RLIBS_585e17a9dc73f/lucid/R/lucid.rdb': No such file or directory
Backtrace:
▆
1. ├─testthat::expect_equal(vc(m1g), ref_val, tolerance = 0.1) at test_vc.r:64:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─lucid::vc(m1g)
── Error ('test_vc.r:99:3'): mmer ──────────────────────────────────────────────
Error in `vc(m1s)`: cannot open file '/tmp/RtmpQbPnIJ/RLIBS_585e17a9dc73f/lucid/R/lucid.rdb': No such file or directory
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test_vc.r:99:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─lucid::vc(m1s)
[ FAIL 3 | WARN 1 | SKIP 2 | PASS 19 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERROR2026-10-24
- OK13 OK2026-09-09
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-04-10
- ERROR13 OK, 1 ERROR2026-04-09
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 3
- Examples that run
- 67%2 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 33%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
Commits over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/kwstat/lucid on 2026-10-21.
GitHub Pages site last deployed 2026-09-03 · The repository has a site deploy workflow
pkgdown site last built 2026-09-03
Dependencies
Installing lucid adds no packages beyond those that come with R.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.12Latest
- RR 4.6.0 released · 2026-04-24
- 1.112026-03-03 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.92025-04-04 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.82021-04-16 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.72019-02-06 · diff ↗
- 1.62018-08-24 · diff ↗
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2014-11-26
- Total releases
- 11 / 12 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 1.9
- Bundled data
- 0.7 KB / 1 file
- Download size
- 49 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("lucid")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-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.