Changes in version 0.10.0.9027 Features - New generate_check_data() generates the code for a check_data() call from an example data frame (#124). - chkor_vld() gains an x_name argument that is passed to each of the underlying chk_ calls, so the error message refers to x_name rather than the deparsed vld_ arguments (#100). Bug fixes - check_data() now names the offending argument when passed a non-data frame, instead of reporting "data.frame". - chk_lte() now sets the x and value fields on its condition for scalar input, consistent with chk_gte(), chk_lt() and chk_gt(). - chk_null_or() resolves the matching chk_ function by direct lookup (including chk_/vld_ pairs defined in other packages) rather than by parse()/eval(), and falls back to an informative message when no partner can be found. - Corrected roxygen @describeIn and @family tags, the chk_matrix() and chk_sorted() wording, the is.atomic(NULL) description in the "chk Families" vignette, and a broken link. Changes in version 0.10.0.9026 fledge - Bump version to 0.10.0.9025 (#248). Uncategorized - Merge pull request #255 from poissonconsulting/add-stefano-contributor. add Stefano as ctb - Merge pull request #252 from poissonconsulting/depend-on-r-4.1-or-above. Depends R >= 4.1.0 Changes in version 0.10.0.9025 fledge - Bump version to 0.10.0.9024 (#246). Changes in version 0.10.0.9024 fledge - Bump version to 0.10.0.9023 (#245). Changes in version 0.10.0.9023 Continuous integration - Update ccache-action reference. - Bump action version. Changes in version 0.10.0.9022 - Merge branch 'main' of github.com:poissonconsulting/chk. Changes in version 0.10.0.9021 Chore - Add ccache to .gitignore and .Rbuildignore. Continuous integration - Create snapshot update PR against correct branch. - Add reference to /apply-patch workflow in commit message. - Clarify rationale for not deploying on schedule. - Only run fledge on pushes to main. - Tweak fledge workflow and ccache action. Changes in version 0.10.0.9020 Continuous integration - Cosmetics. - Bump action versions. - Install clang-format-21. - Align fledge workflow. - Harmonize. Changes in version 0.10.0.9019 Chore - Auto-update from GitHub Actions (#227). Changes in version 0.10.0.9018 Chore - Auto-update from GitHub Actions (#225). Changes in version 0.10.0.9017 Chore - Auto-update from GitHub Actions (#223). - Auto-update from GitHub Actions (#221). - Auto-update from GitHub Actions (#219). - Auto-update from GitHub Actions (#218). Changes in version 0.10.0.9016 Chore - Auto-update from GitHub Actions (#216). Changes in version 0.10.0.9015 Continuous integration - Test all R versions on branches that start with cran- (#213). Changes in version 0.10.0.9014 Continuous integration - Ignore rmarkdown before R 4.1, rappdirs needs R 4.1. Changes in version 0.10.0.9013 Chore - Format with air (#210). Continuous integration - Fix checking without testthat. Changes in version 0.10.0.9012 Continuous integration - Install binaries from r-universe for dev workflow (#206). Changes in version 0.10.0.9011 Continuous integration - Fix reviewdog and add commenting workflow (#204). Changes in version 0.10.0.9010 Continuous integration - Use workflows for fledge (#202). Changes in version 0.10.0.9009 Continuous integration - Sync (#200). Changes in version 0.10.0.9008 Chore - Auto-update from GitHub Actions (#194). Continuous integration - Use reviewdog for external PRs (#195). Changes in version 0.10.0.9007 Continuous integration - Format with air, check detritus, better handling of extra-packages (#192). Changes in version 0.10.0.9006 - Remove internal str2lang() function. (#97, #189). Changes in version 0.10.0.9005 - Merge pull request #187 from poissonconsulting/chkiserrmsg. - Add R 4.0. Changes in version 0.10.0.9004 Continuous integration - Enhance permissions for workflow (#183). Changes in version 0.10.0.9003 Continuous integration - Permissions, better tests for missing suggests, lints (#181). Changes in version 0.10.0.9002 Continuous integration - Always use _R_CHECK_FORCE_SUGGESTS_=false (#178). fledge - Bump version to 0.10.0.9001 (#176). Changes in version 0.10.0.9001 Continuous integration - Correct installation of xml2 (#175). - Sync (#173). Changes in version 0.10.0.9000 - Switching to development version. Changes in version 0.10.0 (2025-01-24) - Added chk_complex() and vld_complex(). (#158). - Added chk_raw() and vld_raw() (#157). - Added check_length(). - Soft-deprecated chk_lgl() for chk_scalar() and chk_logical(). - Fixed nested backticks so that error messages only have one set of backticks. Changes in version 0.9.2 (2024-07-09) - 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. Changes in version 0.9.1 (2023-10-06) - Fixes incorrect error message with chk_null_or() when vld = chk::vld_xx. Changes in version 0.9.0 (2023-05-27) - Added chk_compatible_lengths() and vld_compatible_lengths() to check that lengths of objects are 'strictly recyclable'. - Added inclusive = TRUE argument to chk_range(). - Added upper argument to chk_length(). - vld_sorted() and chk_sorted() now ignore missing values. - Soft deprecated .subclass for class argument in err(), wrn() and msg(). Changes in version 0.8.1 (2022-08-26) - Fixed bug wherecheck_key() failing on sf objects. Changes in version 0.8.0 (2022-02-05) - Updated deprecated argument .subclass to class in rlang function calls - Added chk_valid_name(). - Fixed chk_join() with sf data frames. Changes in version 0.7.0 (2021-09-03) 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 - chk_null_or() now returns (invisible) x. Deprecated - Soft deprecated chkor() for chkor_vld() as slow. - Soft deprecated chk argument of chk_null_or() for vld argument. - Soft deprecated chk_chr(), chk_dbl() and chk_wnum() and vld_ equivalents. - Warn deprecated chk_count(), chk_dirs(), chk_files(), chk_has(), chk_in(), chk_length(), chk_no_missing(), vld_no_missing(), chk_proportion() - Stop deprecated chk_off(), chk_on(), is_chk_on(), Changes in version 0.6.0 (2021-07-04) - 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 sf objects. - chk_whole_numeric() now accepts Inf values. - Removed LazyData: true for DESCRIPTION file to avoid CRAN check note. Changes in version 0.5.0 (2020-05-29) - Added chk_null_or(). - Added chk_wnum() to check whole numeric scalars. - Added chk_dbl() to check double scalars. - Added chk_chr() to check character scalars. - Added chk_not_subset() to check not a subset. - Added chk_factor() to check factor vector. - Added chk_character_or_factor() factor or character vector. - Added check_files() and check_dirs() to check if all files or directories exist (or not). - Added chk_setordered() to check order of elements in set. - check_values() now checks factor levels. - Undeprecated chk_is() as useful for R6 objects. - Soft-deprecated chk_datetime() for chk_date_time(). Changes in version 0.4.0 (2020-03-04) - Added following checks - check_names(). - check_dim(). - check_values(). - check_key(). - check_data(). - Added following typeof chks - chk_logical() and vld_logical(). - chk_double() and vld_double(). - chk_integer() and vld_integer(). - chk_character() and vld_character(). - Added miscellaneous chks - chk_data() and vld_data(). - chk_join(). - Fixed - chk_vector() and vld_vector() so ignores attributes. Changes in version 0.3.1 (2020-02-05) - Added expect_chk_error(). - Added chk_matrix() and vld_matrix(). - Added chk_array() and vld_array(). - abort_chk now allows original arguments to be attached. - Added chk_tz() and vld_tz(). - Added chk_matrix() and vld_matrix(). - Added chk_array() and vld_array(). - Added expect_chk_error(). Changes in version 0.3.0 (2020-01-15) - Added chk_sorted() and vld_sorted(). Changes in version 0.2.1 (2019-11-26) Minor Changes - Removed chk-benchmarking.Rmd vignette that was causing problems for many CRAN checks. Changes in version 0.2.0 (2019-11-15) 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). New Functions - chk_all() - chk_atomic() - chk_environment() - chk_ext() - chk_has() - chk_not_empty() - chk_s3_class() - chk_s4_class() - chk_setequal() Newly Exported Functions - backtick_chk() - unbacktick_chk(). 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. (Soft) Deprecated Functions - chk_no_missing() for chk_not_any_na(). - chk_files() and chk_dirs() for chk_all(x, chk_file) etc. - deparse_backtick() for deparse_backtick_chk(). - chk_length(), chk_proportion() and chk_count(). - chk_on(), chk_off() and is_chk_on(). Minor Changes - Changed chk_match() so ignores missing values. - Changed chk_true() (and chk_false()) to same behavior as isTRUE in R >= 3.5. - Extended chk_unique() to handle incomparables != FALSE with data frames. - Changed to range = c(0,1) for chk_range(). Changes in version 0.0.1 - Initial release.