Checks object is NULL.

check_null(x, x_name = substitute(x))

Arguments

x

The object to check.

x_name

A string of the name of the object.

Value

Throws an informative error or returns NULL.