Skip to main content

Rf_classgets

Function Rf_classgets 

Source
unsafe fn Rf_classgets(vec: SEXP, klass: SEXP) -> SEXP
Expand description

Set the class attribute of a vector.

Equivalent to R’s class(vec) <- klass syntax. The “gets” suffix indicates this is a setter function.

§Returns

Returns the modified vector (like all “*gets” functions). Checked wrapper for Rf_classgets. Calls Rf_classgets_unchecked and routes through with_r_thread. Generated from source location line 2527, column 8. Generated from source file miniextendr-api/src/ffi.rs.