fracture
R package fracture by rossellhayes — release notes from GitHub.
fracture solved decimal-to-fraction conversion years ago and now only answers to CRAN.
◆Recent moves
- 6mo ago
Obsolete C++11 requirement removed
Removes an obsolete C++11 system requirement now that R defaults to C++17. Toolchain housekeeping with no change in behaviour — and the only release in nearly four years.
View source ↗ - 4y ago
NA and Inf inputs handled instead of erroring
fracture() and frac_mat() stop erroring on vectors containing NA or Inf, returning NA and "Inf/1" respectively, and frac_style() no longer renders whole numbers in mixed fractions as a zero-over-zero glyph. Edge-case tolerance for a function used inside pipelines.
View source ↗ - 4y ago
Explicit denominator argument; arguments now named-only
Adds a denom argument to fix the denominator across all fractions, forces named arguments after x, and changes the default denominator at 0 and 1. The API-tightening release, breaking positional calls in exchange for a clearer contract.
View source ↗ - 5y ago
Unicode fraction formatting and rounding fixes
Adds frac_style() for Unicode superscript and subscript formatting and is.frac_mat(), and reimplements both conversion routines with doubles to fix rounding errors. Backed by exhaustive tests across millions of fractions.
View source ↗