ExpectHasKeys: Make sure that the object has all of the keys specified. Also...

View source: R/utils.R

ExpectHasKeysR Documentation

Make sure that the object has all of the keys specified. Also tests that there are not additional keys if allowAdditional is FALSE (default).

Description

Make sure that the object has all of the keys specified. Also tests that there are not additional keys if allowAdditional is FALSE (default).

Usage

ExpectHasKeys(obj, keys, allowAdditional = FALSE)

Arguments

obj

object. A list, vector, or data.frame to check names.

keys

character. A vector of names of keys to check.

allowAdditional

logical. Should we allow there to be more keys than specified?


datarobot documentation built on May 29, 2024, 4:36 a.m.