Learn R Programming

vmTools (version 1.0.1)

assert_named_list: Assert an object is a list with named elements

Description

Stops if:

  • x is not a list

  • x is a data.frame

  • x has no names

  • x has any NA names

  • x has any zero-length names

  • x has any whitespace-only names

Usage

assert_named_list(x)

Value

[none] stop if assertion fails

Arguments

x

[list] List to check

See Also

Other assertions: assert_dir_exists(), assert_scalar(), assert_scalar_not_empty(), assert_type()