Skip to content

lucid

Printing Floating Point Numbers in a Human-Friendly Format

v1.11 · Mar 3, 2026 · MIT + file LICENSE

Description

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.

Downloads

CRAN

2.3K

Last 30 days

2566th

12.6K

Last 90 days

48.2K

Last year

Trend: -57.8% (30d vs prior 30d)

r2u CRAN

7

Last 30 days

34

Last 90 days

121

Last year

Trend: -30% (30d vs prior 30d)

autoCRAN

0

Last 7 days

7

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [3s/4s]
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   
...[truncated]...
est_vc.r:98:3'): mmer ──────────────────────────────────────────────
  Error in `mmer(travel ~ 1, random = ~Rail, data = Rail)`: could not find function "mmer"
  
  [ FAIL 1 | WARN 2 | SKIP 2 | PASS 21 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

1,601

Files

22

Compiled share

0%

Has compiled src

No

Language breakdown

R 552 (34.5%)Tests 284 (17.7%)Docs 257 (16.1%)Vignettes 508 (31.7%)

API

Exported functions

2

Internal functions

18

Testing & CI

Has tests

Yes

Test-to-code ratio

0.51

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

33.3%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

10

First release

2014-11-24

Latest release

2026-03-03

Avg cadence

333 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0: 837 LOCv1.1: 1,026 LOCv1.2: 1,095 LOCv1.3: 1,111 LOCv1.4: 1,522 LOCv1.6: 1,609 LOCv1.7: 1,566 LOCv1.8: 1,622 LOCv1.9: 1,615 LOCv1.11: 1,601 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies nlme agridat connected lucid

Version History

11 tracked
new 1.11 Mar 10, 2026
updated 1.11 ← 1.9 diff Mar 2, 2026
updated 1.9 ← 1.8 diff Apr 3, 2025
updated 1.8 ← 1.7 diff Apr 15, 2021
updated 1.7 ← 1.6 diff Feb 5, 2019
updated 1.6 ← 1.4 diff Aug 23, 2018
updated 1.4 ← 1.3 diff Oct 24, 2016
updated 1.3 ← 1.2 diff Jul 2, 2015
updated 1.2 ← 1.1 diff Apr 13, 2015
updated 1.1 ← 1.0 diff Feb 10, 2015
new 1.0 Nov 25, 2014