formatdown
Formatting Numbers in 'rmarkdown' Documents
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; 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.
README
Unit tests Richard A. Layton 2022-11-16 In writing defensive programming unit tests for formatdown, I use the packages: - checkmate, to write the runtime assertions to check function arguments. These assertions are in the function files in the `formatdown/R/` directory. - tinytest, to write the unit tests that check function arguments before the function executes. The test files are in the directory `formatdown/inst/tinytest/`.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.1.4 |
rolling linux/jammy R-4.5 | formatdown_0.1.4.tar.gz |
1.5 MiB |
0.1.4 |
rolling linux/noble R-4.5 | formatdown_0.1.4.tar.gz |
1.5 MiB |
0.1.4 |
rolling source/ R- | formatdown_0.1.4.tar.gz |
1.4 MiB |
0.1.4 |
latest linux/jammy R-4.5 | formatdown_0.1.4.tar.gz |
1.5 MiB |
0.1.4 |
latest linux/noble R-4.5 | formatdown_0.1.4.tar.gz |
1.5 MiB |
0.1.4 |
latest source/ R- | formatdown_0.1.4.tar.gz |
1.4 MiB |
0.1.4 |
2026-04-26 source/ R- | formatdown_0.1.4.tar.gz |
1.4 MiB |
0.1.4 |
2026-04-23 source/ R- | formatdown_0.1.4.tar.gz |
1.4 MiB |
0.1.4 |
2026-04-09 windows/windows R-4.5 | formatdown_0.1.4.zip |
1.5 MiB |
0.1.4 |
2025-04-20 source/ R- | formatdown_0.1.4.tar.gz |
1.4 MiB |