allowAdditional
is FALSE (default).Make sure that the object has all of the keys specified. Also tests that there
are not additional keys if allowAdditional
is FALSE (default).
ExpectHasKeys(obj, keys, allowAdditional = FALSE)
object. A list, vector, or data.frame to check names.
character. A vector of names of keys to check.
logical. Should we allow there to be more keys than specified?