Expand description
Provide limited protection for multithreaded access to the R API.
Constantsยง
- THREAD_
HAS_ ๐LOCK
Staticsยง
- R_
API_ ๐LOCK - A global lock, that should represent the global lock on the R-API. It is not tied to an actual instance of R.
- R_
ERROR_ ๐BUF
Functionsยง
- catch_
r_ error - Wrap an R function such as
Rf_findFunctionand convert errors and panics into results. - register_
extendr_ panic_ hook - This function registers a configurable print panic hook, for use in extendr-based R-packages.
If the environment variable
EXTENDR_BACKTRACEis set to eithertrueor1, then it displays the entire Rust panic traceback (default hook), otherwise it omits the panic backtrace. - single_
threaded - Run
fwhile ensuring thatfruns in a single-threaded manner. - throw_
r_ error