This function checks whether a specified global variable
in a psychTestR state object is NULL.
If so, it throws an error.
assert_global_is_null(key, state)
Arguments
| key |
(Character scalar)
Identifies the global variable to be checked. |
| state |
A psychTestR state object. |