has_any_attributes: Does the input have any attributes?

Description Usage Arguments Value Note See Also Examples

View source: R/has-attributes.R

Description

Checks to see if the input has any attributes.

Usage

1
2
3
has_any_attributes(x, .xname = get_name_in_parent(x))

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

Arguments

x

Input to check.

.xname

Not intended to be used directly.

Value

has_any_attributes returns TRUE if attributes(x) has length greater than zero. has_attributes returns a logical vector that is TRUE whenever the specified attribute is not NULL.

Note

There are no corresponding assert functions, since they overlap too closely with the assertions for has_attributes.

See Also

has_attributes to check for specific attributes.

Examples

1
2

assertive.properties documentation built on May 19, 2017, 4:09 p.m.

Search within the assertive.properties package
Search all R packages, documentation and source code