Expand description
Provide limited protection for multithreaded access to the R API.
Constants§
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_findFunction
and convert errors and panics into results. - single_
threaded - Run
f
while ensuring thatf
runs in a single-threaded manner. - throw_
r_ error