• No longer officially supports R 3.6 as dependency evaluate of suggested dependency testthat switched to 4.0.
  • check_key() now preserves active status of sfc column of sf object.
  • Fixed vld_join(by = NULL) with R 4.5.
  • Fixes incorrect error message with chk_null_or() when vld = chk::vld_xx.
  • Updated deprecated argument .subclass to class in rlang function calls
  • Added chk_valid_name().
  • Fixed chk_join() with sf data frames.

Added

  • Added chkor_vld() as faster replacement for soft-deprecated chkor().
  • Sped up chk_null_or() by soft-deprecating chk argument for vld argument.
  • Un-deprecated chk_count() and chk_length() because so useful.
  • Updated error messages to precede objects which are described by their class by ‘the y object of class’.

Fixed

Deprecated

  • All chk_xx() functions now return invisible copy of x (if passes check).
  • Fixed bug in check_key() and check_data() when key is undefined for sfobjects.
  • chk_whole_numeric() now accepts Inf values.
  • Removed LazyData: true for DESCRIPTION file to avoid CRAN check note.

Minor Changes

  • Removed chk-benchmarking.Rmd vignette that was causing problems for many CRAN checks.

Major Changes

  • Added x_name = NULL argument to relevant chk_ functions.
  • Replaced err = FALSE variant with vld_ variant.
  • Switched from stop(), warning() and message() to rlang variants abort(), warn() and inform().
  • All error messages now start with x_name.
  • Err capitalizes first character and adds missing period (tidyverse style).

Newly Exported Functions

New Arguments

  • formals argument to chk_function().
  • tidy = TRUE argument to errors, warnings and messages.
  • n = NULL and call. = FALSE args to error message generating functions.
  • ellipsis = 10L argument to cc().
  • sep = ", " arg to cc().
  • incomparables = FALSE argument to chk_unique().
  • %y to sprintf-like types.

Minor Changes

  • Initial release.