An abbreviation of base::attr(exact = TRUE).

attr(...)

Arguments

...

Passed to base::attr() (without the exact argument).

Examples

z = structure(list(a = 1), foo = 2)
base::attr(z, "f")  # 2
#> [1] 2
xfun::attr(z, "f")  # NULL
#> NULL
xfun::attr(z, "foo")  # 2
#> [1] 2