Skip to contents

This function is used to check whether a provided object is a named list and the list names are a valid non-missing names.

Usage

check_list_names(
  x,
  list_names = NULL,
  arg = rlang::caller_arg(x),
  call = rlang::caller_env()
)

Arguments

x

A list object

list_names

A character vector of list names. By default, it is missing ('NULL').

arg

See caller_arg

call

See caller_env

Value

An invisible object. Otherwise, an error message if there is any missing or mismatch names in the list object when comparing with pre-specified name list.