Skip to main content

s4_class_name

Function s4_class_name 

Source
pub unsafe fn s4_class_name(obj: SEXP) -> Option<String>
Expand description

Extract the S4 class name from an object.

Reads the class attribute and returns the first element as a String. Returns None if the object has no class attribute or the attribute is empty.

ยงSafety

  • obj must be a valid SEXP.
  • Must be called from the R main thread.