Description Usage Arguments Value See Also Examples
Checks to see if the input has a terms component or attribute.
1 2 3 | assert_has_terms(x, severity = getOption("assertive.severity", "stop"))
has_terms(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. |
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
.
1 2 3 | model <- lm(uptake ~ conc, datasets::CO2)
# this works because model$terms is not null
assert_has_terms(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.