| assert_is_environment {assertive.types} | R Documentation |
Checks to see if the input is an environment.
assert_is_environment(x, severity = getOption("assertive.severity", "stop"))
is_environment(x, .xname = get_name_in_parent(x))
x |
Input to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
is_environment wraps is.environment, providing more
information on failure. assert_is_environment returns nothing
but throws an error if is_environment returns FALSE.
assert_is_environment(new.env()) assert_is_environment(globalenv()) assert_is_environment(baseenv())