• fixed check_key with no columns
  • added units testing
  • added names = TRUE and class = TRUE arguments to check_attributes(), check_no_attributes() and check_vector()
  • added na_distinct = FALSE argument to check_key
  • replace internal deparse_x_name() with exported chk_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()

Major Changes

  • added err as dependency for message generation
  • check_data argument values 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

New Functions

New Arguments

Deprecated

  • redefined check_scalar (following previous deprecation)
  • added only = FALSE argument to check_vector() to check whether only the actual values are permitted.
  • added check_rbind() to check two data frames can be smoothly rbinded
  • added check_nchar() function
  • check_vector() and check_list() now allow named argument to be a regular expression or count range
  • added nchar = c(0L, .Machine$max.integer) and regex = ".*" arguments to check_named()
  • added check_regex() function
  • added all_y = TRUE argument to check_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 or NA (# 2)
  • first official release