Check Required Length for a List of Objects
has_required_lengths(x, names_and_rqmts)A list with two elements: 1) rqmt_ok which is TRUE if
the requirement is fulfilled and FALSE otherwise; 2)
err_message, the body of an error message to be used by the calling
function (mentions all problematic elements)
list of objects to be checked
a tibble that relates object names and the
length they are required to have. Must have two columns, name (i.e.
the object name, character), and required (i.e. the required
length, integer)