Changelog
Source:NEWS.md
chk 0.9.2
CRAN release: 2024-07-09
- No longer officially supports R 3.6 as dependency
evaluate
of suggested dependencytestthat
switched to 4.0. -
check_key()
now preserves active status ofsfc
column ofsf
object. - Fixed
vld_join(by = NULL)
with R 4.5.
chk 0.9.1
CRAN release: 2023-10-06
- Fixes incorrect error message with
chk_null_or()
whenvld = chk::vld_xx
.
chk 0.9.0
CRAN release: 2023-05-27
- Added
chk_compatible_lengths()
andvld_compatible_lengths()
to check that lengths of objects are ‘strictly recyclable’. - Added
inclusive = TRUE
argument tochk_range()
. - Added
upper
argument tochk_length()
. -
vld_sorted()
andchk_sorted()
now ignore missing values. - Soft deprecated
.subclass
forclass
argument inerr()
,wrn()
andmsg()
.
chk 0.8.0
CRAN release: 2022-02-05
- Updated deprecated argument
.subclass
toclass
in rlang function calls - Added
chk_valid_name()
. - Fixed
chk_join()
withsf
data frames.
chk 0.7.0
CRAN release: 2021-09-03
Added
- Added
chkor_vld()
as faster replacement for soft-deprecatedchkor()
. - Sped up
chk_null_or()
by soft-deprecatingchk
argument forvld
argument. - Un-deprecated
chk_count()
andchk_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()
forchkor_vld()
as slow. - Soft deprecated
chk
argument ofchk_null_or()
forvld
argument. - Soft deprecated
chk_chr()
,chk_dbl()
andchk_wnum()
andvld_
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()
,
chk 0.6.0
CRAN release: 2021-07-04
- All
chk_xx()
functions now return invisible copy of x (if passes check). - Fixed bug in
check_key()
andcheck_data()
when key is undefined forsf
objects. -
chk_whole_numeric()
now acceptsInf
values. - Removed
LazyData: true
for DESCRIPTION file to avoid CRAN check note.
chk 0.5.0
CRAN release: 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()
andcheck_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()
forchk_date_time()
.
chk 0.4.0
CRAN release: 2020-03-04
- Added following checks
- Added following typeof chks
-
chk_logical()
andvld_logical()
. -
chk_double()
andvld_double()
. -
chk_integer()
andvld_integer()
. -
chk_character()
andvld_character()
.
-
- Added miscellaneous chks
-
chk_data()
andvld_data()
. -
chk_join()
.
-
- Fixed
-
chk_vector()
andvld_vector()
so ignores attributes.
-
chk 0.3.1
CRAN release: 2020-02-05
- Added
expect_chk_error()
. - Added
chk_matrix()
andvld_matrix()
. - Added
chk_array()
andvld_array()
. -
abort_chk
now allows original arguments to be attached. - Added
chk_tz()
andvld_tz()
. - Added
chk_matrix()
andvld_matrix()
. - Added
chk_array()
andvld_array()
. - Added
expect_chk_error()
.
chk 0.2.0
CRAN release: 2019-11-15
Major Changes
- Added
x_name = NULL
argument to relevantchk_
functions. - Replaced
err = FALSE
variant withvld_
variant. - Switched from
stop()
,warning()
andmessage()
to rlang variantsabort()
,warn()
andinform()
. - All error messages now start with x_name.
- Err capitalizes first character and adds missing period (tidyverse style).
New Arguments
-
formals
argument tochk_function()
. -
tidy = TRUE
argument to errors, warnings and messages. -
n = NULL
andcall. = FALSE
args to error message generating functions. -
ellipsis = 10L
argument tocc()
. -
sep = ", "
arg tocc()
. -
incomparables = FALSE
argument tochk_unique()
. -
%y
to sprintf-like types.
(Soft) Deprecated Functions
chk_files()
andchk_dirs()
forchk_all(x, chk_file)
etc.chk_on()
,chk_off()
andis_chk_on()
.
Minor Changes
- Changed
chk_match()
so ignores missing values. - Changed
chk_true()
(andchk_false()
) to same behavior asisTRUE
in R >= 3.5. - Extended
chk_unique()
to handleincomparables != FALSE
with data frames. - Changed to
range = c(0,1)
forchk_range()
.