check_scalar()
now accepts missingvalue
argue to simply check that a scalar.- Added
check_length()
- Added
checkor()
to check at least one check passed. - Added
check_null()
to check if NULL.
- Fixed bug in check_key when checking sf data frames with key = character(0)
- Removed
check_data()
which was deprecated in v0.1.0. - Removed all dependencies.
- Moved vignettes into README
- Add function
check_unique()
to confirm an object doesn't have any duplicated elements.
- Fixed tests so that compatible with testthat v0.11.0.9000
-
Added arguments
min_row = 0
andmax_row = max_nrow()
tocheck_data
to allow checking of the number of rows. -
Added argument
key = character(0)
tocheck_data
to allow checking of a unique key. -
Added stricter variants of
check_data
calledcheck_data2
andcheck_data3
as well as an aliascheck_data1
forcheck_data
and deprecatedcheck_data
. -
Added function
check_vector
to check the class and values of a vector. -
Added function
check_scalar
to check the class and values of a scalar. -
Added functions
check_flag
,check_int
,check_count
,check_string
,check_date
andcheck_time
functions for specific scalars. -
Added function
check_data_frame
to check if an object is a data frame. -
Added function
check_rows
to check the number of rows in a data frame. -
Added function
check_cols
to check the names of columns in a data frame. -
Added function
check_values
to check the classes and values of the columns in a data frame. -
Added function
check_key
to check that particular columns represent unique keys. -
Added function
check_join
to check a many-to-one join between two data frames. -
Added wrapper function
max_nrow()
to return the theoretical maximum number of rows. -
Added function
min_integer
as wrapper for-.Machine$integer.max
. -
Value checking now works with columns inheriting from base classes i.e. ordered factors.
-
Added argument
data_name = substitute(data)
to all functions so users can overide the name of data.
- Added vignette datacheckr.
- The copy of the original data frame returned by
check_data
is now invisible. - Added function
max_integer
as wrapper for.Machine$integer.max
. - On fail
check_data
now lists specific permitted values if 5 or less (if 3 or less for character)
- Initial Release