Does the input have terms?

Description

Checks to see if the input has a terms component or attribute.

Usage

1
2
3
assert_has_terms(x, severity = getOption("assertive.severity", "stop"))

has_terms(x, .xname = get_name_in_parent(x))

Arguments

x

Input to check.

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

.xname

Not intended to be used directly.

Value

has_terms returns TRUE if the input has an element or an attribute named terms. assert_has_terms returns nothing but throws an error if has_terms is not TRUE.

See Also

terms.

Examples

1
assert_has_terms(lm(uptake ~ conc, CO2))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.