Skip to main content

Rf_error

Function Rf_error 

Source
pub unsafe fn Rf_error(fmt: *const c_char, arg1: *const c_char) -> !
Expand description

Checked wrapper for Rf_error - panics if called from non-main thread. Common usage: Rf_error(c"%s".as_ptr(), message.as_ptr())

ยงSafety

  • Must be called from the R main thread
  • fmt and arg1 must be valid null-terminated C strings