Changelog
Source:NEWS.md
checkr 0.5.0
CRAN release: 2019-04-25
- fixed check_key with no columns
- added units testing
- added
names = TRUE
andclass = TRUE
arguments tocheck_attributes()
,check_no_attributes()
andcheck_vector()
- added
na_distinct = FALSE
argument tocheck_key
- replace internal
deparse_x_name()
with exportedchk_deparse()
- added
check_name()
to check if elements of character vector are each a syntactically valid name -
check_named()
now only gives 1 warning if error = FALSE and not named - removed
check_tz()
checkr 0.4.0
CRAN release: 2018-11-01
Major Changes
- added
err
as dependency for message generation -
check_data
argumentvalues
now NULL by default (as opposed to missing) - lengths including nrows and ncols can now be checked by a vector of possible values
-
coerce = TRUE
now also strips attributes for flag, int, dbl, string and logical, integer, double, character.
Exported
- exported
chk_deparse()
to deparse dealing with NAs for packages which extend - exported
chk_fail()
to have conditional error or warning messages for packages which extend. - exported
chk_max_int()
,chk_min_int()
,chk_min_dbl()
,chk_max_dbl()
andchk_tiny_dbl()
to get integer and numeric ranges for system.
New Functions
- added
check_intersection()
to check the intersection between two atomic vectors - added
check_integer()
,check_numeric()
,check_double()
,check_logical()
andcheck_character()
- added
check_int()
andcheck_dbl()
both of which do coercion - added
check_prob()
to check a probability - added
check_pos_dbl()
,check_neg_dbl()
andcheck_noneg_dbl()
- added
check_pos_int()
,check_neg_int()
andcheck_noneg_int()
- added
check_attributes()
to check an objects attributes andcheck_no_attributes()
- added
check_lgl()
,check_chr()
,check_day()
,check_dttm()
- added
check_grepl()
New Arguments
- added
attributes
argument tocheck_vector()
andcheck_scalar()
which now only accept a flag for named - added
complete = TRUE
argument tocheck_names()
- added
exclusive = FALSE
andorder = FALSE
tocheck_list()
Deprecated
- deprecated
unique = FALSE
,length = NA
andnamed = NA
fromcheck_list()
as checked throughvalues
argument or with specific functions - deprecated
check_regex()
andcheck_pattern()
(and addedcheck_grepl()
) and deprecatedregex
argument forpattern
argument - deprecated
check_flag_na()
checkr 0.3.0
CRAN release: 2018-06-27
- redefined
check_scalar
(following previous deprecation) - added
only = FALSE
argument tocheck_vector()
to check whether only the actual values are permitted. - added
check_rbind()
to check two data frames can be smoothlyrbind
ed
checkr 0.2.0
CRAN release: 2018-03-26
- deprecated
check_tz()
forcheck_tzone()
- added
check_unused()
to check...
is unused within a function - added
check_homogenous()
to check object’s elements are the same class - added
check_flag_na()
to check is scalar logical
checkr 0.1.0
CRAN release: 2018-03-02
- added
check_nchar()
function -
check_vector()
andcheck_list()
now allownamed
argument to be a regular expression or count range - added
nchar = c(0L, .Machine$max.integer)
andregex = ".*"
arguments tocheck_named()
- added
check_regex()
function - added
all_y = TRUE
argument tocheck_join()
to check all rows in y in join - changed
check_join()
error message to
…join in x and y must include all the rows in x as opposed to …join in x and y violates referential integrity - added
check_number()
to check that object is a scalar real - added
assertive-programming
vignette - vector length are now checked before values
- lengths can now be specified using
TRUE
,FALSE
orNA
(# 2)
checkr 0.0.2
CRAN release: 2018-01-29
- added
check_inherits()
andcheck_classes()
functions -
check_named()
now only checks unique whenunique = TRUE
-
check_names()
(andcheck_colnames()
) can now check names are unique and also acceptnames = character(0)
(andcolnames = character(0)
)