Learn R Programming

assertive (version 0.2-6)

has_any_attributes: Does the input have any attributes?

Description

Checks to see if the input has any attributes.

Usage

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

Arguments

x
Input to check.
.xname
Not intended to be used directly.

Value

  • has_terms returns TRUE if attributes(x) has length zero. assert_has_terms returns nothing but throws an error if has_terms is not TRUE.

Examples

Run this code
assert_has_terms(lm(uptake ~ conc, CO2))

Run the code above in your browser using DataLab