Skip to contents

validate metadata as a list of length one atomic entries (or NULL)

Usage

validate_metadata(metadata)

Arguments

metadata

object to be checked

Value

NULL or throw error

Examples


validate_metadata(NULL)
#> NULL
validate_metadata(list(A = TRUE, B = 10, C = "test"))
#> NULL
if (FALSE) {
validate_metadata(list(a = 1:10))
}