Skip to main content

ANY_ATTRIB_unchecked

Function ANY_ATTRIB_unchecked 

Source
pub unsafe extern "C-unwind" fn ANY_ATTRIB_unchecked(x: SEXP) -> c_int
Expand description

Non-zero if x has any attributes (ATTRIB(x) != R_NilValue).

The API replacement for testing ATTRIB. R 4.5.0 added it: R 4.4’s libR does not export it, so a package that references it fails to load there, and it is declared only when building against R >= 4.5 (r_4_5, #1905). SexpExt::has_attributes works on R 4.4 as well. Unlike attributes(), it ignores the tag names of a pairlist. Unchecked FFI binding for ANY_ATTRIB. Generated from source location line 630, column 12. Generated from source file miniextendr-api/src/sys.rs.