R/utils.R
attr2.Rd
An abbreviation of base::attr(exact = TRUE).
base::attr
(exact = TRUE)
attr2(...) attr(...)
Passed to base::attr() (without the exact argument).
base::attr()
exact
xfun::attr() is deprecated. Please use xfun::attr2() instead.
xfun::attr()
xfun::attr2()
z = structure(list(a = 1), foo = 2) base::attr(z, "f") # 2 #> [1] 2 xfun::attr2(z, "f") # NULL #> NULL xfun::attr2(z, "foo") # 2 #> [1] 2