Skip to contents

stbl 0.4.0

Breaking changes

  • to_df() and to_lst() now error if extra arguments are passed in .... Previously, these extra arguments were silently discarded (#200).
  • to_chr() now converts named functions to a string representing their name instead of erroring. Package functions are returned as "pkg::fn" (e.g., to_chr(mean) returns "base::mean"). Anonymous functions still produce an informative error. This behavior extends to to_chr_scalar(), stabilize_chr(), and stabilize_chr_scalar() (#251).

New functions

Bug fixes

Other changes

  • are_*_ish(), to_*(), stabilize_dbl(), and stabilize_int() are all significantly faster for large vectors, with benchmarks showing roughly 3–20× throughput improvements (#217, #218, #219, #220, #221, #226, #239).
  • The are_*_ish(), to_*(), and range-check functions are now registered as C callables, as are the *_to_chr and *_to_fct families (stbl_chr_to_fct(), stbl_dbl_to_chr(), stbl_dbl_are_chrish(), stbl_fct_to_chr(), stbl_fct_are_chrish(), stbl_int_to_chr(), stbl_int_are_chrish(), stbl_int_to_fct(), stbl_lgl_to_chr(), and stbl_lgl_are_chrish()) (#235, #237, #241).
  • is_fct_ish() now accepts a max_levels argument to limit the number of unique non-NA levels (#231).

stbl 0.3.0

CRAN release: 2026-04-04

Breaking changes

Potential breaking changes

  • Several conditions that formerly included a subclass of “stbl-error-must” no longer include that subclass. This only occurs when “stbl-error-must” was not the most specific subclass (i.e., when a more specific subclass was already included), and therefore should not impact most if any code (#136).

New features

Other changes

  • Revised the “Getting started with stbl” vignette to clarify what happens at each step (#139, #143, #144).
  • Clarified error messages (#176, #177).

stbl 0.2.0

CRAN release: 2025-09-16

New features

Minor improvements and fixes

  • Error messages are now clearer and more standardized throughout the package (#95).
  • to_*() functions now consistently flatten list-like inputs when no information would be lost in the process (#128).
  • to_fct() now lists the allowed values in its error message when a value is not in the expected set, making it easier to debug (#67).
  • to_lgl() now coerces character representations of numbers (e.g., “0” and “1”) to FALSE and TRUE respectively (#30).

Documentation

  • The purpose of and vision for this package are now more clearly described in documentation (#56, #77).
  • New vignette("stbl") provides an overview of the package and its functions (#42).

stbl 0.1.1

CRAN release: 2024-05-23

  • Update formatting in DESCRIPTION and examples.

stbl 0.1.0

  • Initial CRAN submission.