stbl
Stabilize Objects
stbl keeps tightening its own defaults, accepting breakage now to avoid silent wrongness later.
◆Recent moves
- 18d ago
Classed warnings and messages join pkg_abort; dots are no longer silently discarded
Extends the package past coercion into condition signalling with pkg_inform() and pkg_warn() mirroring pkg_abort()'s class hierarchy, plus testthat expectations for both the classes and snapshot output. On the breaking side, to_df() and to_lst() now error on extra arguments instead of dropping them, and to_chr() converts named functions to strings like base::mean rather than erroring.
View source ↗ - 4mo ago
Scalar functions now reject NULL and zero-length input by default
Flips allow_null and allow_zero_length to FALSE across the whole scalar family, requiring explicit opt-in to the old permissive behaviour. The clearest statement yet of the package's direction: a function asking for one value should not silently accept none.
View source ↗ - 11mo ago
Coercion predicates, double support, and stringr pattern matching
Adds the is_*_ish() and are_*_ish() predicate families for testing whether an object or each element can be safely coerced, fills in the double type across to_dbl() and stabilize_dbl(), and lets stabilize_chr() take stringr regex, fixed and coll patterns with helpers for better failure messages. The predicates matter most — they let a caller ask the coercion question without triggering the error.
View source ↗ - 2y ago
DESCRIPTION and example formatting
Formatting changes to DESCRIPTION and the examples, with no functional change. Housekeeping between the package's initial release and the feature work that followed.
View source ↗