Skip to main content

R_compute_identical

Function R_compute_identical 

Source
pub unsafe fn R_compute_identical(x: SEXP, y: SEXP, flags: c_int) -> Rboolean
Expand description

Check if two R objects are identical (deep semantic equality).

This is the C implementation of R’s identical() function.

§Flags

Use the IDENT_* constants below. Flags are inverted: set bit = disable that check.

Default from R: IDENT_USE_CLOENV (16) - ignore closure environments

§Returns

TRUE if identical, FALSE otherwise.

§Performance

Fast-path: Returns TRUE immediately if pointers are equal. Checked wrapper for R_compute_identical. Calls R_compute_identical_unchecked and routes through with_r_thread. Generated from source location line 2415, column 12. Generated from source file miniextendr-api/src/ffi.rs.