Skip to main content

Module sys

Module sys 

Source
Expand description

Raw R FFI bindings — extern "C-unwind" blocks for Rf_* / R_* / INTEGER / etc., plus the ALTREP method type aliases under sys::altrep. The escape hatch for code that genuinely needs the raw R C API.

Almost no user code should reach into this module. The framework expects you to use the crate-root re-exports for the type vocabulary (SEXP, SexpExt, SEXPTYPE, R_xlen_t, …) and the higher-level safe wrappers (IntoR, TryFromSexp, worker::with_r_thread, unwind_protect::with_r_unwind_protect, the #[miniextendr] proc-macro). sys:: is only here so those wrappers — and the rare hand-rolled FFI in tests or benchmarks — have something to call. Raw FFI bindings to R headers.

This module mirrors R’s C API closely and is intentionally thin. You almost never call these directly from user code — prefer the higher-level wrappers: SEXP (in crate::sexp), SexpExt (in crate::sexp_ext), the type vocabulary in crate::sexp_types, plus IntoR, TryFromSexp, with_r_thread, with_r_unwind_protect, and the #[miniextendr] proc-macro. The items here exist so those wrappers can be written; treat them as the framework’s escape hatch.

§Checked vs *_unchecked variants

Most non-variadic R API entry points come in two forms thanks to the #[r_ffi_checked] proc-macro applied to the unsafe extern "C-unwind" blocks below:

  • Checked (default — e.g. Rf_allocVector, Rf_protect, INTEGER): runs directly on R’s main thread, routes through crate::worker::with_r_thread from an active miniextendr worker context, and panics for arbitrary off-main callers. Use these by default.
  • *_unchecked (e.g. Rf_allocVector_unchecked): bypass the assertion and the worker round-trip. Calling one off the R main thread is undefined behaviour. They exist for three known-safe contexts:
    1. Inside ALTREP callbacks — R is already calling us on the main thread.
    2. Inside a crate::unwind_protect::with_r_unwind_protect body — the guard has already established main-thread context.
    3. Inside a crate::worker::with_r_thread body — the check would be redundant.

The build-time lint MXL301 enforces this: any *_unchecked call outside those contexts is a compile-time error.

§Don’t raise R errors directly

Rf_error, Rf_errorcall, and their _unchecked siblings longjmp, which skips Rust destructors and leaks resources. The lint MXL300 forbids them in user code. Use panic!() instead; the framework converts the panic into a structured R condition with rust_* class layering via the tagged-SEXP transport (see crate::error_value).

§Cross references

Modules§

altrep
Raw ALTREP C API method type aliases. Raw ALTREP C API bindings.

Structs§

DllInfo
Opaque dynamic library descriptor from R.
R_CMethodDef
Method definition for .C interface routines.
R_CallMethodDef
Method definition for .Call interface routines.

Enums§

N01type
Normal distribution generator type enum from R_ext/Random.h
ParseStatus
Outcome of R_ParseVector (from R_ext/Parse.h).
RNGtype
RNG type enum from R_ext/Random.h
Sampletype
Discrete uniform sample method enum from R_ext/Random.h

Constants§

IDENT_ATTR_BY_ORDER
Compare attributes in order (not as a set).
IDENT_EXTPTR_AS_REF
Compare external pointers as references (not by address).
IDENT_NA_AS_BITS
Treat all NAs as identical (ignore NA payload differences).
IDENT_NUM_AS_BITS
Flags for R_compute_identical (bitmask, inverted logic: set bit = disable check).
IDENT_USE_BYTECODE
Include bytecode in comparison.
IDENT_USE_CLOENV
Include closure environments in comparison.
IDENT_USE_SRCREF
Include source references in comparison.

Statics§

R_BaseEnv⚠
Base package namespace environment.
R_BaseNamespace⚠
Base package namespace — encapsulated by SEXP::base_namespace()
R_BlankString⚠
Empty string CHARSXP — encapsulated by SEXP::blank_string()
R_ClassSymbol⚠
R_DimNamesSymbol⚠
R_DimSymbol⚠
R_EmptyEnv⚠
Empty root environment.
R_GlobalEnv⚠
Global environment (.GlobalEnv).
R_LevelsSymbol⚠
R_MissingArg⚠
The “missing argument” sentinel value.
R_NaString⚠
Missing string singleton — encapsulated by SEXP::na_string()
R_NamesSymbol⚠
Symbol for names attribute.
R_NilValue⚠
The canonical R NULL value.
R_RowNamesSymbol⚠
R_TspSymbol⚠
R_UnboundValue⚠
Sentinel returned by R_getVarEx (via its ifnotfound argument) when the symbol has no binding in the searched frame(s).

Functions§

ALTREP⚠
Check if a SEXP is an ALTREP object (returns non-zero if true).
ALTREP_CLASS 🔒 ⚠
Checked wrapper for ALTREP_CLASS. Calls ALTREP_CLASS_unchecked and routes through with_r_thread. Generated from source location line 688, column 19. Generated from source file miniextendr-api/src/sys.rs.
ALTREP_CLASS_unchecked 🔒 ⚠
Unchecked FFI binding for ALTREP_CLASS. Generated from source location line 688, column 19. Generated from source file miniextendr-api/src/sys.rs.
ALTREP_unchecked⚠
Check if a SEXP is an ALTREP object (returns non-zero if true).
ANY_ATTRIB⚠
Non-zero if x has any attributes (ATTRIB(x) != R_NilValue).
ANY_ATTRIB_unchecked⚠
Non-zero if x has any attributes (ATTRIB(x) != R_NilValue).
CAAR⚠
Checked wrapper for CAAR. Calls CAAR_unchecked and routes through with_r_thread. Generated from source location line 569, column 12. Generated from source file miniextendr-api/src/sys.rs.
CAAR_unchecked⚠
Unchecked FFI binding for CAAR. Generated from source location line 569, column 12. Generated from source file miniextendr-api/src/sys.rs.
CAD4R⚠
Checked wrapper for CAD4R. Calls CAD4R_unchecked and routes through with_r_thread. Generated from source location line 575, column 12. Generated from source file miniextendr-api/src/sys.rs.
CAD4R_unchecked⚠
Unchecked FFI binding for CAD4R. Generated from source location line 575, column 12. Generated from source file miniextendr-api/src/sys.rs.
CADDDR⚠
Checked wrapper for CADDDR. Calls CADDDR_unchecked and routes through with_r_thread. Generated from source location line 574, column 12. Generated from source file miniextendr-api/src/sys.rs.
CADDDR_unchecked⚠
Unchecked FFI binding for CADDDR. Generated from source location line 574, column 12. Generated from source file miniextendr-api/src/sys.rs.
CADDR⚠
Checked wrapper for CADDR. Calls CADDR_unchecked and routes through with_r_thread. Generated from source location line 573, column 12. Generated from source file miniextendr-api/src/sys.rs.
CADDR_unchecked⚠
Unchecked FFI binding for CADDR. Generated from source location line 573, column 12. Generated from source file miniextendr-api/src/sys.rs.
CADR⚠
Checked wrapper for CADR. Calls CADR_unchecked and routes through with_r_thread. Generated from source location line 571, column 12. Generated from source file miniextendr-api/src/sys.rs.
CADR_unchecked⚠
Unchecked FFI binding for CADR. Generated from source location line 571, column 12. Generated from source file miniextendr-api/src/sys.rs.
CAR⚠
Checked wrapper for CAR. Calls CAR_unchecked and routes through with_r_thread. Generated from source location line 567, column 12. Generated from source file miniextendr-api/src/sys.rs.
CAR_unchecked⚠
Unchecked FFI binding for CAR. Generated from source location line 567, column 12. Generated from source file miniextendr-api/src/sys.rs.
CDAR⚠
Checked wrapper for CDAR. Calls CDAR_unchecked and routes through with_r_thread. Generated from source location line 570, column 12. Generated from source file miniextendr-api/src/sys.rs.
CDAR_unchecked⚠
Unchecked FFI binding for CDAR. Generated from source location line 570, column 12. Generated from source file miniextendr-api/src/sys.rs.
CDDR⚠
Checked wrapper for CDDR. Calls CDDR_unchecked and routes through with_r_thread. Generated from source location line 572, column 12. Generated from source file miniextendr-api/src/sys.rs.
CDDR_unchecked⚠
Unchecked FFI binding for CDDR. Generated from source location line 572, column 12. Generated from source file miniextendr-api/src/sys.rs.
CDR⚠
Checked wrapper for CDR. Calls CDR_unchecked and routes through with_r_thread. Generated from source location line 568, column 12. Generated from source file miniextendr-api/src/sys.rs.
CDR_unchecked⚠
Unchecked FFI binding for CDR. Generated from source location line 568, column 12. Generated from source file miniextendr-api/src/sys.rs.
COMPLEX 🔒 ⚠
Get mutable pointer to complex vector data.
COMPLEX_ELT⚠
Checked wrapper for COMPLEX_ELT. Calls COMPLEX_ELT_unchecked and routes through with_r_thread. Generated from source location line 594, column 12. Generated from source file miniextendr-api/src/sys.rs.
COMPLEX_ELT_unchecked⚠
Unchecked FFI binding for COMPLEX_ELT. Generated from source location line 594, column 12. Generated from source file miniextendr-api/src/sys.rs.
COMPLEX_OR_NULL⚠
Checked wrapper for COMPLEX_OR_NULL. Calls COMPLEX_OR_NULL_unchecked and routes through with_r_thread. Generated from source location line 587, column 12. Generated from source file miniextendr-api/src/sys.rs.
COMPLEX_OR_NULL_unchecked⚠
Unchecked FFI binding for COMPLEX_OR_NULL. Generated from source location line 587, column 12. Generated from source file miniextendr-api/src/sys.rs.
COMPLEX_unchecked 🔒 ⚠
Get mutable pointer to complex vector data.
DATAPTR_OR_NULL⚠
Checked wrapper for DATAPTR_OR_NULL. Calls DATAPTR_OR_NULL_unchecked and routes through with_r_thread. Generated from source location line 539, column 12. Generated from source file miniextendr-api/src/sys.rs.
DATAPTR_OR_NULL_unchecked⚠
Unchecked FFI binding for DATAPTR_OR_NULL. Generated from source location line 539, column 12. Generated from source file miniextendr-api/src/sys.rs.
DATAPTR_RO⚠
Checked wrapper for DATAPTR_RO. Calls DATAPTR_RO_unchecked and routes through with_r_thread. Generated from source location line 538, column 12. Generated from source file miniextendr-api/src/sys.rs.
DATAPTR_RO_unchecked⚠
Unchecked FFI binding for DATAPTR_RO. Generated from source location line 538, column 12. Generated from source file miniextendr-api/src/sys.rs.
GetRNGstate⚠
Save the current RNG state from R’s global state.
GetRNGstate_unchecked⚠
Save the current RNG state from R’s global state.
INTEGER 🔒 ⚠
Get mutable pointer to integer vector data.
INTEGER_ELT⚠
Checked wrapper for INTEGER_ELT. Calls INTEGER_ELT_unchecked and routes through with_r_thread. Generated from source location line 591, column 12. Generated from source file miniextendr-api/src/sys.rs.
INTEGER_ELT_unchecked⚠
Unchecked FFI binding for INTEGER_ELT. Generated from source location line 591, column 12. Generated from source file miniextendr-api/src/sys.rs.
INTEGER_OR_NULL⚠
Checked wrapper for INTEGER_OR_NULL. Calls INTEGER_OR_NULL_unchecked and routes through with_r_thread. Generated from source location line 585, column 12. Generated from source file miniextendr-api/src/sys.rs.
INTEGER_OR_NULL_unchecked⚠
Unchecked FFI binding for INTEGER_OR_NULL. Generated from source location line 585, column 12. Generated from source file miniextendr-api/src/sys.rs.
INTEGER_unchecked 🔒 ⚠
Get mutable pointer to integer vector data.
LENGTH⚠
Get the length of a SEXP as int (for short vectors < 2^31).
LENGTH_unchecked⚠
Get the length of a SEXP as int (for short vectors < 2^31).
LOGICAL 🔒 ⚠
Get mutable pointer to logical vector data.
LOGICAL_ELT⚠
Checked wrapper for LOGICAL_ELT. Calls LOGICAL_ELT_unchecked and routes through with_r_thread. Generated from source location line 593, column 12. Generated from source file miniextendr-api/src/sys.rs.
LOGICAL_ELT_unchecked⚠
Unchecked FFI binding for LOGICAL_ELT. Generated from source location line 593, column 12. Generated from source file miniextendr-api/src/sys.rs.
LOGICAL_OR_NULL⚠
Checked wrapper for LOGICAL_OR_NULL. Calls LOGICAL_OR_NULL_unchecked and routes through with_r_thread. Generated from source location line 584, column 12. Generated from source file miniextendr-api/src/sys.rs.
LOGICAL_OR_NULL_unchecked⚠
Unchecked FFI binding for LOGICAL_OR_NULL. Generated from source location line 584, column 12. Generated from source file miniextendr-api/src/sys.rs.
LOGICAL_unchecked 🔒 ⚠
Get mutable pointer to logical vector data.
PRINTNAME⚠
Get the print name (CHARSXP) of a symbol (SYMSXP) Checked wrapper for PRINTNAME. Calls PRINTNAME_unchecked and routes through with_r_thread. Generated from source location line 757, column 12. Generated from source file miniextendr-api/src/sys.rs.
PRINTNAME_unchecked⚠
Get the print name (CHARSXP) of a symbol (SYMSXP) Unchecked FFI binding for PRINTNAME. Generated from source location line 757, column 12. Generated from source file miniextendr-api/src/sys.rs.
PutRNGstate⚠
Restore the RNG state to R’s global state.
PutRNGstate_unchecked⚠
Restore the RNG state to R’s global state.
RAW 🔒 ⚠
Get mutable pointer to raw vector data.
RAW_ELT⚠
Checked wrapper for RAW_ELT. Calls RAW_ELT_unchecked and routes through with_r_thread. Generated from source location line 595, column 12. Generated from source file miniextendr-api/src/sys.rs.
RAW_ELT_unchecked⚠
Unchecked FFI binding for RAW_ELT. Generated from source location line 595, column 12. Generated from source file miniextendr-api/src/sys.rs.
RAW_OR_NULL⚠
Checked wrapper for RAW_OR_NULL. Calls RAW_OR_NULL_unchecked and routes through with_r_thread. Generated from source location line 588, column 12. Generated from source file miniextendr-api/src/sys.rs.
RAW_OR_NULL_unchecked⚠
Unchecked FFI binding for RAW_OR_NULL. Generated from source location line 588, column 12. Generated from source file miniextendr-api/src/sys.rs.
RAW_unchecked 🔒 ⚠
Get mutable pointer to raw vector data.
REAL 🔒 ⚠
Get mutable pointer to real vector data.
REAL_ELT⚠
Checked wrapper for REAL_ELT. Calls REAL_ELT_unchecked and routes through with_r_thread. Generated from source location line 592, column 12. Generated from source file miniextendr-api/src/sys.rs.
REAL_ELT_unchecked⚠
Unchecked FFI binding for REAL_ELT. Generated from source location line 592, column 12. Generated from source file miniextendr-api/src/sys.rs.
REAL_OR_NULL⚠
Checked wrapper for REAL_OR_NULL. Calls REAL_OR_NULL_unchecked and routes through with_r_thread. Generated from source location line 586, column 12. Generated from source file miniextendr-api/src/sys.rs.
REAL_OR_NULL_unchecked⚠
Unchecked FFI binding for REAL_OR_NULL. Generated from source location line 586, column 12. Generated from source file miniextendr-api/src/sys.rs.
REAL_unchecked 🔒 ⚠
Get mutable pointer to real vector data.
REprintf⚠
Print to R’s stderr (via R_ShowMessage or error console).
REprintf_unchecked⚠
Unchecked variadic REprintf; call checked wrapper when possible.
R_CHAR⚠
Get the C string pointer from a CHARSXP — encapsulated by SexpExt::r_char() Checked wrapper for R_CHAR. Calls R_CHAR_unchecked and routes through with_r_thread. Generated from source location line 760, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_CHAR_unchecked⚠
Get the C string pointer from a CHARSXP — encapsulated by SexpExt::r_char() Unchecked FFI binding for R_CHAR. Generated from source location line 760, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_CheckStack⚠
Check for R stack overflow.
R_CheckStack2⚠
Check for R stack overflow with extra space requirement.
R_CheckStack2_unchecked⚠
Check for R stack overflow with extra space requirement.
R_CheckStack_unchecked⚠
Check for R stack overflow.
R_CheckUserInterrupt⚠
Checked wrapper for R_CheckUserInterrupt. Calls R_CheckUserInterrupt_unchecked and routes through with_r_thread. Generated from source location line 743, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_CheckUserInterrupt_unchecked⚠
Unchecked FFI binding for R_CheckUserInterrupt. Generated from source location line 743, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_ClearExternalPtr 🔒 ⚠
Checked wrapper for R_ClearExternalPtr. Calls R_ClearExternalPtr_unchecked and routes through with_r_thread. Generated from source location line 371, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ClearExternalPtr_unchecked 🔒 ⚠
Unchecked FFI binding for R_ClearExternalPtr. Generated from source location line 371, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ContinueUnwind 🔒 ⚠
Checked wrapper for R_ContinueUnwind. Calls R_ContinueUnwind_unchecked and routes through with_r_thread. Generated from source location line 337, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ContinueUnwind_unchecked 🔒 ⚠
Unchecked FFI binding for R_ContinueUnwind. Generated from source location line 337, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ExpandFileName⚠
Expand a filename, resolving ~ and environment variables.
R_ExpandFileName_unchecked⚠
Expand a filename, resolving ~ and environment variables.
R_ExternalPtrAddr⚠
Checked wrapper for R_ExternalPtrAddr. Calls R_ExternalPtrAddr_unchecked and routes through with_r_thread. Generated from source location line 368, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrAddrFn⚠
Checked wrapper for R_ExternalPtrAddrFn. Calls R_ExternalPtrAddrFn_unchecked and routes through with_r_thread. Generated from source location line 377, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrAddrFn_unchecked⚠
Unchecked FFI binding for R_ExternalPtrAddrFn. Generated from source location line 377, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrAddr_unchecked⚠
Unchecked FFI binding for R_ExternalPtrAddr. Generated from source location line 368, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrProtected 🔒 ⚠
Checked wrapper for R_ExternalPtrProtected. Calls R_ExternalPtrProtected_unchecked and routes through with_r_thread. Generated from source location line 370, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrProtected_unchecked 🔒 ⚠
Unchecked FFI binding for R_ExternalPtrProtected. Generated from source location line 370, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrTag 🔒 ⚠
Checked wrapper for R_ExternalPtrTag. Calls R_ExternalPtrTag_unchecked and routes through with_r_thread. Generated from source location line 369, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ExternalPtrTag_unchecked 🔒 ⚠
Unchecked FFI binding for R_ExternalPtrTag. Generated from source location line 369, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_FindNamespace⚠
Find a registered namespace by name. Longjmps on error — prefer REnv::package_namespace() which wraps this safely. Checked wrapper for R_FindNamespace. Calls R_FindNamespace_unchecked and routes through with_r_thread. Generated from source location line 951, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_FindNamespace_unchecked⚠
Find a registered namespace by name. Longjmps on error — prefer REnv::package_namespace() which wraps this safely. Unchecked FFI binding for R_FindNamespace. Generated from source location line 951, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_FlushConsole 🔒 ⚠
Checked wrapper for R_FlushConsole. Calls R_FlushConsole_unchecked and routes through with_r_thread. Generated from source location line 296, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_FlushConsole_unchecked 🔒 ⚠
Unchecked FFI binding for R_FlushConsole. Generated from source location line 296, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_GetCCallable 🔒 ⚠
Get a C-callable function from another package. Checked wrapper for R_GetCCallable. Calls R_GetCCallable_unchecked and routes through with_r_thread. Generated from source location line 392, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_GetCCallable_unchecked 🔒 ⚠
Get a C-callable function from another package. Unchecked FFI binding for R_GetCCallable. Generated from source location line 392, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_GetCurrentEnv 🔒 ⚠
Return the current execution environment (innermost closure on call stack, or R_GlobalEnv if none). Checked wrapper for R_GetCurrentEnv. Calls R_GetCurrentEnv_unchecked and routes through with_r_thread. Generated from source location line 957, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_GetCurrentEnv_unchecked 🔒 ⚠
Return the current execution environment (innermost closure on call stack, or R_GlobalEnv if none). Unchecked FFI binding for R_GetCurrentEnv. Generated from source location line 957, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_MakeExternalPtr 🔒 ⚠
External pointer interface Checked wrapper for R_MakeExternalPtr. Calls R_MakeExternalPtr_unchecked and routes through with_r_thread. Generated from source location line 367, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_MakeExternalPtrFn⚠
Added in R 3.4.0 Checked wrapper for R_MakeExternalPtrFn. Calls R_MakeExternalPtrFn_unchecked and routes through with_r_thread. Generated from source location line 376, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_MakeExternalPtrFn_unchecked⚠
Added in R 3.4.0 Unchecked FFI binding for R_MakeExternalPtrFn. Generated from source location line 376, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_MakeExternalPtr_unchecked 🔒 ⚠
External pointer interface Unchecked FFI binding for R_MakeExternalPtr. Generated from source location line 367, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_MakeUnwindCont 🔒 ⚠
Checked wrapper for R_MakeUnwindCont. Calls R_MakeUnwindCont_unchecked and routes through with_r_thread. Generated from source location line 336, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_MakeUnwindCont_unchecked 🔒 ⚠
Unchecked FFI binding for R_MakeUnwindCont. Generated from source location line 336, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_MakeWeakRef⚠
Create a weak reference.
R_MakeWeakRefC⚠
Create a weak reference with C finalizer. Checked wrapper for R_MakeWeakRefC. Calls R_MakeWeakRefC_unchecked and routes through with_r_thread. Generated from source location line 2717, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_MakeWeakRefC_unchecked⚠
Create a weak reference with C finalizer. Unchecked FFI binding for R_MakeWeakRefC. Generated from source location line 2717, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_MakeWeakRef_unchecked⚠
Create a weak reference.
R_NewEnv 🔒 ⚠
Create a new environment.
R_NewEnv_unchecked 🔒 ⚠
Create a new environment.
R_ParseVector⚠
Parse R source text into an EXPRSXP (a list of parsed expressions).
R_ParseVector_unchecked⚠
Parse R source text into an EXPRSXP (a list of parsed expressions).
R_PreserveObject⚠
Add a SEXP to the global precious list, preventing GC indefinitely.
R_PreserveObject_unchecked⚠
Add a SEXP to the global precious list, preventing GC indefinitely.
R_ProtectWithIndex⚠
Protect a SEXP and record its stack index for later R_Reprotect.
R_ProtectWithIndex_unchecked⚠
Protect a SEXP and record its stack index for later R_Reprotect.
R_RegisterCCallable 🔒 ⚠
Register a C-callable function for cross-package access. Checked wrapper for R_RegisterCCallable. Calls R_RegisterCCallable_unchecked and routes through with_r_thread. Generated from source location line 386, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterCCallable_unchecked 🔒 ⚠
Register a C-callable function for cross-package access. Unchecked FFI binding for R_RegisterCCallable. Generated from source location line 386, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterCFinalizer 🔒 ⚠
Checked wrapper for R_RegisterCFinalizer. Calls R_RegisterCFinalizer_unchecked and routes through with_r_thread. Generated from source location line 379, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterCFinalizerEx 🔒 ⚠
Checked wrapper for R_RegisterCFinalizerEx. Calls R_RegisterCFinalizerEx_unchecked and routes through with_r_thread. Generated from source location line 381, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterCFinalizerEx_unchecked 🔒 ⚠
Unchecked FFI binding for R_RegisterCFinalizerEx. Generated from source location line 381, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterCFinalizer_unchecked 🔒 ⚠
Unchecked FFI binding for R_RegisterCFinalizer. Generated from source location line 379, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterFinalizer⚠
Checked wrapper for R_RegisterFinalizer. Calls R_RegisterFinalizer_unchecked and routes through with_r_thread. Generated from source location line 378, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterFinalizerEx⚠
Checked wrapper for R_RegisterFinalizerEx. Calls R_RegisterFinalizerEx_unchecked and routes through with_r_thread. Generated from source location line 380, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterFinalizerEx_unchecked⚠
Unchecked FFI binding for R_RegisterFinalizerEx. Generated from source location line 380, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_RegisterFinalizer_unchecked⚠
Unchecked FFI binding for R_RegisterFinalizer. Generated from source location line 378, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_ReleaseObject⚠
Remove a SEXP from the global precious list, allowing GC.
R_ReleaseObject_unchecked⚠
Remove a SEXP from the global precious list, allowing GC.
R_Reprotect⚠
Replace the SEXP at a previously recorded protect stack index.
R_Reprotect_unchecked⚠
Replace the SEXP at a previously recorded protect stack index.
R_RunPendingFinalizers⚠
Run pending finalizers. Checked wrapper for R_RunPendingFinalizers. Calls R_RunPendingFinalizers_unchecked and routes through with_r_thread. Generated from source location line 2726, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_RunPendingFinalizers_unchecked⚠
Run pending finalizers. Unchecked FFI binding for R_RunPendingFinalizers. Generated from source location line 2726, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_SetExternalPtrAddr 🔒 ⚠
Checked wrapper for R_SetExternalPtrAddr. Calls R_SetExternalPtrAddr_unchecked and routes through with_r_thread. Generated from source location line 372, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_SetExternalPtrAddr_unchecked 🔒 ⚠
Unchecked FFI binding for R_SetExternalPtrAddr. Generated from source location line 372, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_SetExternalPtrProtected 🔒 ⚠
Checked wrapper for R_SetExternalPtrProtected. Calls R_SetExternalPtrProtected_unchecked and routes through with_r_thread. Generated from source location line 374, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_SetExternalPtrProtected_unchecked 🔒 ⚠
Unchecked FFI binding for R_SetExternalPtrProtected. Generated from source location line 374, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_SetExternalPtrTag 🔒 ⚠
Checked wrapper for R_SetExternalPtrTag. Calls R_SetExternalPtrTag_unchecked and routes through with_r_thread. Generated from source location line 373, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_SetExternalPtrTag_unchecked 🔒 ⚠
Unchecked FFI binding for R_SetExternalPtrTag. Generated from source location line 373, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ToplevelExec 🔒 ⚠
Run fun(data) in a new top-level context: the caller’s condition handlers and restarts are hidden from it, and any jump out of it (an unhandled error, an interrupt, an abort restart) stops here. TRUE when fun returned, FALSE after such a jump. Checked wrapper for R_ToplevelExec. Calls R_ToplevelExec_unchecked and routes through with_r_thread. Generated from source location line 981, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_ToplevelExec_unchecked 🔒 ⚠
Run fun(data) in a new top-level context: the caller’s condition handlers and restarts are hidden from it, and any jump out of it (an unhandled error, an interrupt, an abort restart) stops here. TRUE when fun returned, FALSE after such a jump. Unchecked FFI binding for R_ToplevelExec. Generated from source location line 981, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_UnwindProtect 🔒 ⚠
Checked wrapper for R_UnwindProtect. Calls R_UnwindProtect_unchecked and routes through with_r_thread. Generated from source location line 338, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_UnwindProtect_C_unwind 🔒 ⚠
Version of R_UnwindProtect that accepts extern "C-unwind" function pointers
R_UnwindProtect_unchecked 🔒 ⚠
Unchecked FFI binding for R_UnwindProtect. Generated from source location line 338, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_WeakRefKey⚠
Get the key from a weak reference. Checked wrapper for R_WeakRefKey. Calls R_WeakRefKey_unchecked and routes through with_r_thread. Generated from source location line 2720, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_WeakRefKey_unchecked⚠
Get the key from a weak reference. Unchecked FFI binding for R_WeakRefKey. Generated from source location line 2720, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_WeakRefValue⚠
Get the value from a weak reference. Checked wrapper for R_WeakRefValue. Calls R_WeakRefValue_unchecked and routes through with_r_thread. Generated from source location line 2723, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_WeakRefValue_unchecked⚠
Get the value from a weak reference. Unchecked FFI binding for R_WeakRefValue. Generated from source location line 2723, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_alloc⚠
Allocate memory on R’s memory stack.
R_allocLD⚠
Allocate an array of long doubles on R’s memory stack.
R_allocLD_unchecked⚠
Allocate an array of long doubles on R’s memory stack.
R_alloc_unchecked⚠
Allocate memory on R’s memory stack.
R_altrep_data1⚠
Checked wrapper for R_altrep_data1. Calls R_altrep_data1_unchecked and routes through with_r_thread. Generated from source location line 689, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_altrep_data2⚠
Checked wrapper for R_altrep_data2. Calls R_altrep_data2_unchecked and routes through with_r_thread. Generated from source location line 690, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_altrep_data1_unchecked⚠
Unchecked FFI binding for R_altrep_data1. Generated from source location line 689, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_altrep_data2_unchecked⚠
Unchecked FFI binding for R_altrep_data2. Generated from source location line 690, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_atof⚠
Convert string to double, always using ‘.’ as decimal point.
R_atof_unchecked⚠
Convert string to double, always using ‘.’ as decimal point.
R_calloc_gc⚠
GC-aware calloc.
R_calloc_gc_unchecked⚠
GC-aware calloc.
R_compute_identical⚠
Check if two R objects are identical (deep semantic equality).
R_compute_identical_unchecked⚠
Check if two R objects are identical (deep semantic equality).
R_csort⚠
Sort a complex vector in place.
R_csort_unchecked⚠
Sort a complex vector in place.
R_existsVarInFrame⚠
Check if a variable exists in an environment frame.
R_existsVarInFrame_unchecked⚠
Check if a variable exists in an environment frame.
R_forceAndCall⚠
Checked wrapper for R_forceAndCall. Calls R_forceAndCall_unchecked and routes through with_r_thread. Generated from source location line 1001, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_forceAndCall_unchecked⚠
Unchecked FFI binding for R_forceAndCall. Generated from source location line 1001, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_forceSymbols 🔒 ⚠
Checked wrapper for R_forceSymbols. Calls R_forceSymbols_unchecked and routes through with_r_thread. Generated from source location line 1237, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_forceSymbols_unchecked 🔒 ⚠
Unchecked FFI binding for R_forceSymbols. Generated from source location line 1237, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_free_tmpnam⚠
Free a temporary filename allocated by R_tmpnam or R_tmpnam2. Checked wrapper for R_free_tmpnam. Calls R_free_tmpnam_unchecked and routes through with_r_thread. Generated from source location line 2398, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_free_tmpnam_unchecked⚠
Free a temporary filename allocated by R_tmpnam or R_tmpnam2. Unchecked FFI binding for R_free_tmpnam. Generated from source location line 2398, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_gc⚠
Run the R garbage collector.
R_gc_running⚠
Check if the garbage collector is currently running.
R_gc_running_unchecked⚠
Check if the garbage collector is currently running.
R_gc_unchecked⚠
Run the R garbage collector.
R_getVarEx⚠
Single-frame (inherits = FALSE) or inherited variable lookup with an ifnotfound default — the API-blessed replacement for Rf_findVarInFrame. R 4.5.0 added it, so it is declared only when building against R >= 4.5 (r_4_5, #1905); for R 4.4, evaluate base::get0() instead. Longjmps if rho is not an environment or the binding is R_MissingArg; forces promises. Checked wrapper for R_getVarEx. Calls R_getVarEx_unchecked and routes through with_r_thread. Generated from source location line 940, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_getVarEx_unchecked⚠
Single-frame (inherits = FALSE) or inherited variable lookup with an ifnotfound default — the API-blessed replacement for Rf_findVarInFrame. R 4.5.0 added it, so it is declared only when building against R >= 4.5 (r_4_5, #1905); for R 4.4, evaluate base::get0() instead. Longjmps if rho is not an environment or the binding is R_MissingArg; forces promises. Unchecked FFI binding for R_getVarEx. Generated from source location line 940, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_isort⚠
Sort an integer vector in place (ascending order).
R_isort_unchecked⚠
Sort an integer vector in place (ascending order).
R_malloc_gc⚠
GC-aware malloc.
R_malloc_gc_unchecked⚠
GC-aware malloc.
R_max_col⚠
Find column maxima in a matrix.
R_max_col_unchecked⚠
Find column maxima in a matrix.
R_nchar⚠
Get the number of characters in a string/character.
R_nchar_unchecked⚠
Get the number of characters in a string/character.
R_qsort⚠
Quicksort doubles in place.
R_qsort_I⚠
Quicksort doubles with index array.
R_qsort_I_unchecked⚠
Quicksort doubles with index array.
R_qsort_int⚠
Quicksort integers in place.
R_qsort_int_I⚠
Quicksort integers with index array.
R_qsort_int_I_unchecked⚠
Quicksort integers with index array.
R_qsort_int_unchecked⚠
Quicksort integers in place.
R_qsort_unchecked⚠
Quicksort doubles in place.
R_realloc_gc⚠
GC-aware realloc.
R_realloc_gc_unchecked⚠
GC-aware realloc.
R_registerRoutines 🔒 ⚠
Checked wrapper for R_registerRoutines. Calls R_registerRoutines_unchecked and routes through with_r_thread. Generated from source location line 1228, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_registerRoutines_unchecked 🔒 ⚠
Unchecked FFI binding for R_registerRoutines. Generated from source location line 1228, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_removeVarFromFrame⚠
Remove a variable from an environment frame.
R_removeVarFromFrame_unchecked⚠
Remove a variable from an environment frame.
R_rsort⚠
Sort a double vector in place (ascending order).
R_rsort_unchecked⚠
Sort a double vector in place (ascending order).
R_sample_kind⚠
Get the current discrete uniform sample method. Checked wrapper for R_sample_kind. Calls R_sample_kind_unchecked and routes through with_r_thread. Generated from source location line 1665, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_sample_kind_unchecked⚠
Get the current discrete uniform sample method. Unchecked FFI binding for R_sample_kind. Generated from source location line 1665, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_set_altrep_data1⚠
Checked wrapper for R_set_altrep_data1. Calls R_set_altrep_data1_unchecked and routes through with_r_thread. Generated from source location line 691, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_set_altrep_data2⚠
Checked wrapper for R_set_altrep_data2. Calls R_set_altrep_data2_unchecked and routes through with_r_thread. Generated from source location line 692, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_set_altrep_data1_unchecked⚠
Unchecked FFI binding for R_set_altrep_data1. Generated from source location line 691, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_set_altrep_data2_unchecked⚠
Unchecked FFI binding for R_set_altrep_data2. Generated from source location line 692, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_strtod⚠
Convert string to double with end pointer, using ‘.’ as decimal point.
R_strtod_unchecked⚠
Convert string to double with end pointer, using ‘.’ as decimal point.
R_tmpnam⚠
Generate a temporary filename.
R_tmpnam2⚠
Generate a temporary filename with extension.
R_tmpnam2_unchecked⚠
Generate a temporary filename with extension.
R_tmpnam_unchecked⚠
Generate a temporary filename.
R_tryCatchError 🔒 ⚠
Call body(bdata) with an exiting handler for conditions of class error: on such a condition, handler(cond, hdata) runs after the unwind and its value is returned. Built on R’s tryCatch(), so the caller’s handlers stay visible to body (wrap it in R_ToplevelExec to hide them). Checked wrapper for R_tryCatchError. Calls R_tryCatchError_unchecked and routes through with_r_thread. Generated from source location line 991, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_tryCatchError_unchecked 🔒 ⚠
Call body(bdata) with an exiting handler for conditions of class error: on such a condition, handler(cond, hdata) runs after the unwind and its value is returned. Built on R’s tryCatch(), so the caller’s handlers stay visible to body (wrap it in R_ToplevelExec to hide them). Unchecked FFI binding for R_tryCatchError. Generated from source location line 991, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_tryEval⚠
Checked wrapper for R_tryEval. Calls R_tryEval_unchecked and routes through with_r_thread. Generated from source location line 971, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_tryEval_unchecked⚠
Unchecked FFI binding for R_tryEval. Generated from source location line 971, column 12. Generated from source file miniextendr-api/src/sys.rs.
R_unif_index⚠
Generate a uniform random index in [0, dn).
R_unif_index_unchecked⚠
Generate a uniform random index in [0, dn).
R_useDynamicSymbols 🔒 ⚠
Checked wrapper for R_useDynamicSymbols. Calls R_useDynamicSymbols_unchecked and routes through with_r_thread. Generated from source location line 1236, column 19. Generated from source file miniextendr-api/src/sys.rs.
R_useDynamicSymbols_unchecked 🔒 ⚠
Unchecked FFI binding for R_useDynamicSymbols. Generated from source location line 1236, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_GetColNames 🔒 ⚠
Checked wrapper for Rf_GetColNames. Calls Rf_GetColNames_unchecked and routes through with_r_thread. Generated from source location line 928, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_GetColNames_unchecked 🔒 ⚠
Unchecked FFI binding for Rf_GetColNames. Generated from source location line 928, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_GetOption1⚠
Get an R option value.
Rf_GetOption1_unchecked⚠
Get an R option value.
Rf_GetOptionDigits⚠
Get the digits option.
Rf_GetOptionDigits_unchecked⚠
Get the digits option.
Rf_GetOptionWidth 🔒 ⚠
Get the width option.
Rf_GetOptionWidth_unchecked 🔒 ⚠
Get the width option.
Rf_GetRowNames 🔒 ⚠
Checked wrapper for Rf_GetRowNames. Calls Rf_GetRowNames_unchecked and routes through with_r_thread. Generated from source location line 926, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_GetRowNames_unchecked 🔒 ⚠
Unchecked FFI binding for Rf_GetRowNames. Generated from source location line 926, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_PairToVectorList⚠
Convert a pairlist to a generic vector (list). Checked wrapper for Rf_PairToVectorList. Calls Rf_PairToVectorList_unchecked and routes through with_r_thread. Generated from source location line 2732, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_PairToVectorList_unchecked⚠
Convert a pairlist to a generic vector (list). Unchecked FFI binding for Rf_PairToVectorList. Generated from source location line 2732, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_PrintValue⚠
Print an R value to the console.
Rf_PrintValue_unchecked⚠
Print an R value to the console.
Rf_S3Class⚠
Get the S3 class of an S4 object. Checked wrapper for Rf_S3Class. Calls Rf_S3Class_unchecked and routes through with_r_thread. Generated from source location line 2620, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_S3Class_unchecked⚠
Get the S3 class of an S4 object. Unchecked FFI binding for Rf_S3Class. Generated from source location line 2620, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarComplex⚠
Checked wrapper for Rf_ScalarComplex. Calls Rf_ScalarComplex_unchecked and routes through with_r_thread. Generated from source location line 521, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarComplex_unchecked⚠
Unchecked FFI binding for Rf_ScalarComplex. Generated from source location line 521, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarInteger⚠
Checked wrapper for Rf_ScalarInteger. Calls Rf_ScalarInteger_unchecked and routes through with_r_thread. Generated from source location line 523, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarInteger_unchecked⚠
Unchecked FFI binding for Rf_ScalarInteger. Generated from source location line 523, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarLogical⚠
Checked wrapper for Rf_ScalarLogical. Calls Rf_ScalarLogical_unchecked and routes through with_r_thread. Generated from source location line 525, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarLogical_unchecked⚠
Unchecked FFI binding for Rf_ScalarLogical. Generated from source location line 525, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarRaw⚠
Checked wrapper for Rf_ScalarRaw. Calls Rf_ScalarRaw_unchecked and routes through with_r_thread. Generated from source location line 527, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarRaw_unchecked⚠
Unchecked FFI binding for Rf_ScalarRaw. Generated from source location line 527, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarReal⚠
Checked wrapper for Rf_ScalarReal. Calls Rf_ScalarReal_unchecked and routes through with_r_thread. Generated from source location line 529, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarReal_unchecked⚠
Unchecked FFI binding for Rf_ScalarReal. Generated from source location line 529, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarString⚠
Checked wrapper for Rf_ScalarString. Calls Rf_ScalarString_unchecked and routes through with_r_thread. Generated from source location line 531, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ScalarString_unchecked⚠
Unchecked FFI binding for Rf_ScalarString. Generated from source location line 531, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_VectorToPairList⚠
Convert a generic vector (list) to a pairlist. Checked wrapper for Rf_VectorToPairList. Calls Rf_VectorToPairList_unchecked and routes through with_r_thread. Generated from source location line 2736, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_VectorToPairList_unchecked⚠
Convert a generic vector (list) to a pairlist. Unchecked FFI binding for Rf_VectorToPairList. Generated from source location line 2736, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_alloc3DArray⚠
Checked wrapper for Rf_alloc3DArray. Calls Rf_alloc3DArray_unchecked and routes through with_r_thread. Generated from source location line 493, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_alloc3DArray_unchecked⚠
Unchecked FFI binding for Rf_alloc3DArray. Generated from source location line 493, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocArray⚠
Checked wrapper for Rf_allocArray. Calls Rf_allocArray_unchecked and routes through with_r_thread. Generated from source location line 491, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocArray_unchecked⚠
Unchecked FFI binding for Rf_allocArray. Generated from source location line 491, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocLang⚠
Allocate a language object. Requires R >= 4.4.1; the portable crate::gc_protect::ProtectScope::alloc_lang also supports R 4.4.0. Checked wrapper for Rf_allocLang. Calls Rf_allocLang_unchecked and routes through with_r_thread. Generated from source location line 507, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocLang_unchecked⚠
Allocate a language object. Requires R >= 4.4.1; the portable crate::gc_protect::ProtectScope::alloc_lang also supports R 4.4.0. Unchecked FFI binding for Rf_allocLang. Generated from source location line 507, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocList 🔒 ⚠
Checked wrapper for Rf_allocList. Calls Rf_allocList_unchecked and routes through with_r_thread. Generated from source location line 503, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocList_unchecked 🔒 ⚠
Unchecked FFI binding for Rf_allocList. Generated from source location line 503, column 19. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocMatrix⚠
Checked wrapper for Rf_allocMatrix. Calls Rf_allocMatrix_unchecked and routes through with_r_thread. Generated from source location line 485, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocMatrix_unchecked⚠
Unchecked FFI binding for Rf_allocMatrix. Generated from source location line 485, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocS4Object⚠
Checked wrapper for Rf_allocS4Object. Calls Rf_allocS4Object_unchecked and routes through with_r_thread. Generated from source location line 509, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocS4Object_unchecked⚠
Unchecked FFI binding for Rf_allocS4Object. Generated from source location line 509, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocVector⚠
Checked wrapper for Rf_allocVector. Calls Rf_allocVector_unchecked and routes through with_r_thread. Generated from source location line 483, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_allocVector_unchecked⚠
Unchecked FFI binding for Rf_allocVector. Generated from source location line 483, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_any_duplicated⚠
Find first duplicated element.
Rf_any_duplicated_unchecked⚠
Find first duplicated element.
Rf_applyClosure⚠
Checked wrapper for Rf_applyClosure. Calls Rf_applyClosure_unchecked and routes through with_r_thread. Generated from source location line 963, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_applyClosure_unchecked⚠
Unchecked FFI binding for Rf_applyClosure. Generated from source location line 963, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asChar⚠
Checked wrapper for Rf_asChar. Calls Rf_asChar_unchecked and routes through with_r_thread. Generated from source location line 830, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asChar_unchecked⚠
Unchecked FFI binding for Rf_asChar. Generated from source location line 830, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asInteger⚠
Checked wrapper for Rf_asInteger. Calls Rf_asInteger_unchecked and routes through with_r_thread. Generated from source location line 826, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asInteger_unchecked⚠
Unchecked FFI binding for Rf_asInteger. Generated from source location line 826, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asLogical⚠
Checked wrapper for Rf_asLogical. Calls Rf_asLogical_unchecked and routes through with_r_thread. Generated from source location line 824, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asLogical_unchecked⚠
Unchecked FFI binding for Rf_asLogical. Generated from source location line 824, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asReal⚠
Checked wrapper for Rf_asReal. Calls Rf_asReal_unchecked and routes through with_r_thread. Generated from source location line 828, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asReal_unchecked⚠
Unchecked FFI binding for Rf_asReal. Generated from source location line 828, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_asS4⚠
Convert to an S4 object.
Rf_asS4_unchecked⚠
Convert to an S4 object.
Rf_charIsASCII⚠
Checked wrapper for Rf_charIsASCII. Calls Rf_charIsASCII_unchecked and routes through with_r_thread. Generated from source location line 329, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_charIsASCII_unchecked⚠
Unchecked FFI binding for Rf_charIsASCII. Generated from source location line 329, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_charIsLatin1⚠
Checked wrapper for Rf_charIsLatin1. Calls Rf_charIsLatin1_unchecked and routes through with_r_thread. Generated from source location line 333, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_charIsLatin1_unchecked⚠
Unchecked FFI binding for Rf_charIsLatin1. Generated from source location line 333, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_charIsUTF8⚠
Checked wrapper for Rf_charIsUTF8. Calls Rf_charIsUTF8_unchecked and routes through with_r_thread. Generated from source location line 331, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_charIsUTF8_unchecked⚠
Unchecked FFI binding for Rf_charIsUTF8. Generated from source location line 331, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_classgets⚠
Set the class attribute of a vector.
Rf_classgets_unchecked⚠
Set the class attribute of a vector.
Rf_coerceVector⚠
Checked wrapper for Rf_coerceVector. Calls Rf_coerceVector_unchecked and routes through with_r_thread. Generated from source location line 832, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_coerceVector_unchecked⚠
Unchecked FFI binding for Rf_coerceVector. Generated from source location line 832, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_cons⚠
Checked wrapper for Rf_cons. Calls Rf_cons_unchecked and routes through with_r_thread. Generated from source location line 512, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_cons_unchecked⚠
Unchecked FFI binding for Rf_cons. Generated from source location line 512, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_copyMostAttrib⚠
Copy most attributes from source to target.
Rf_copyMostAttrib_unchecked⚠
Copy most attributes from source to target.
Rf_defineVar⚠
Checked wrapper for Rf_defineVar. Calls Rf_defineVar_unchecked and routes through with_r_thread. Generated from source location line 942, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_defineVar_unchecked⚠
Unchecked FFI binding for Rf_defineVar. Generated from source location line 942, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_dimgets⚠
Set the dim attribute; returns the updated object. Checked wrapper for Rf_dimgets. Calls Rf_dimgets_unchecked and routes through with_r_thread. Generated from source location line 774, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_dimgets_unchecked⚠
Set the dim attribute; returns the updated object. Unchecked FFI binding for Rf_dimgets. Generated from source location line 774, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_dimnamesgets⚠
Set the dimnames attribute of an array/matrix.
Rf_dimnamesgets_unchecked⚠
Set the dimnames attribute of an array/matrix.
Rf_dnorm4⚠
Normal density: dnorm(x, mean = mu, sd = sigma, log = give_log).
Rf_dnorm4_unchecked⚠
Normal density: dnorm(x, mean = mu, sd = sigma, log = give_log).
Rf_duplicate⚠
Checked wrapper for Rf_duplicate. Calls Rf_duplicate_unchecked and routes through with_r_thread. Generated from source location line 778, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_duplicate_unchecked⚠
Unchecked FFI binding for Rf_duplicate. Generated from source location line 778, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_elt⚠
Checked wrapper for Rf_elt. Calls Rf_elt_unchecked and routes through with_r_thread. Generated from source location line 890, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_elt_unchecked⚠
Unchecked FFI binding for Rf_elt. Generated from source location line 890, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_error⚠
Checked wrapper for Rf_error - panics if called from non-main thread. Common usage: Rf_error(c"%s".as_ptr(), message.as_ptr())
Rf_error_unchecked⚠
Unchecked variadic Rf_error; call checked wrapper when possible.
Rf_errorcall⚠
Checked wrapper for Rf_errorcall - panics if called from non-main thread.
Rf_errorcall_unchecked⚠
Unchecked variadic Rf_errorcall; call checked wrapper when possible.
Rf_eval⚠
Checked wrapper for Rf_eval. Calls Rf_eval_unchecked and routes through with_r_thread. Generated from source location line 961, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_eval_unchecked⚠
Unchecked FFI binding for Rf_eval. Generated from source location line 961, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_findFun⚠
Checked wrapper for Rf_findFun. Calls Rf_findFun_unchecked and routes through with_r_thread. Generated from source location line 946, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_findFun_unchecked⚠
Unchecked FFI binding for Rf_findFun. Generated from source location line 946, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_getAttrib⚠
Read an attribute from an object by symbol (e.g. R_NamesSymbol).
Rf_getAttrib_unchecked⚠
Read an attribute from an object by symbol (e.g. R_NamesSymbol).
Rf_getCharCE⚠
Checked wrapper for Rf_getCharCE. Calls Rf_getCharCE_unchecked and routes through with_r_thread. Generated from source location line 327, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_getCharCE_unchecked⚠
Unchecked FFI binding for Rf_getCharCE. Generated from source location line 327, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_inherits⚠
Checked wrapper for Rf_inherits. Calls Rf_inherits_unchecked and routes through with_r_thread. Generated from source location line 842, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_inherits_unchecked⚠
Unchecked FFI binding for Rf_inherits. Generated from source location line 842, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_install⚠
Checked wrapper for Rf_install. Calls Rf_install_unchecked and routes through with_r_thread. Generated from source location line 755, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_installChar⚠
Install a symbol from a CHARSXP.
Rf_installChar_unchecked⚠
Install a symbol from a CHARSXP.
Rf_install_unchecked⚠
Unchecked FFI binding for Rf_install. Generated from source location line 755, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isArray⚠
Checked wrapper for Rf_isArray. Calls Rf_isArray_unchecked and routes through with_r_thread. Generated from source location line 864, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isArray_unchecked⚠
Unchecked FFI binding for Rf_isArray. Generated from source location line 864, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isComplex⚠
Checked wrapper for Rf_isComplex. Calls Rf_isComplex_unchecked and routes through with_r_thread. Generated from source location line 854, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isComplex_unchecked⚠
Unchecked FFI binding for Rf_isComplex. Generated from source location line 854, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isDataFrame⚠
Checked wrapper for Rf_isDataFrame. Calls Rf_isDataFrame_unchecked and routes through with_r_thread. Generated from source location line 880, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isDataFrame_unchecked⚠
Unchecked FFI binding for Rf_isDataFrame. Generated from source location line 880, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isEnvironment⚠
Checked wrapper for Rf_isEnvironment. Calls Rf_isEnvironment_unchecked and routes through with_r_thread. Generated from source location line 858, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isEnvironment_unchecked⚠
Unchecked FFI binding for Rf_isEnvironment. Generated from source location line 858, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isExpression⚠
Checked wrapper for Rf_isExpression. Calls Rf_isExpression_unchecked and routes through with_r_thread. Generated from source location line 856, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isExpression_unchecked⚠
Unchecked FFI binding for Rf_isExpression. Generated from source location line 856, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isFactor⚠
Checked wrapper for Rf_isFactor. Calls Rf_isFactor_unchecked and routes through with_r_thread. Generated from source location line 882, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isFactor_unchecked⚠
Unchecked FFI binding for Rf_isFactor. Generated from source location line 882, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isFunction⚠
Checked wrapper for Rf_isFunction. Calls Rf_isFunction_unchecked and routes through with_r_thread. Generated from source location line 874, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isFunction_unchecked⚠
Unchecked FFI binding for Rf_isFunction. Generated from source location line 874, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isInteger⚠
Checked wrapper for Rf_isInteger. Calls Rf_isInteger_unchecked and routes through with_r_thread. Generated from source location line 884, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isInteger_unchecked⚠
Unchecked FFI binding for Rf_isInteger. Generated from source location line 884, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isLanguage⚠
Checked wrapper for Rf_isLanguage. Calls Rf_isLanguage_unchecked and routes through with_r_thread. Generated from source location line 878, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isLanguage_unchecked⚠
Unchecked FFI binding for Rf_isLanguage. Generated from source location line 878, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isList⚠
Checked wrapper for Rf_isList. Calls Rf_isList_unchecked and routes through with_r_thread. Generated from source location line 868, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isList_unchecked⚠
Unchecked FFI binding for Rf_isList. Generated from source location line 868, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isLogical⚠
Checked wrapper for Rf_isLogical. Calls Rf_isLogical_unchecked and routes through with_r_thread. Generated from source location line 850, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isLogical_unchecked⚠
Unchecked FFI binding for Rf_isLogical. Generated from source location line 850, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isMatrix⚠
Checked wrapper for Rf_isMatrix. Calls Rf_isMatrix_unchecked and routes through with_r_thread. Generated from source location line 866, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isMatrix_unchecked⚠
Unchecked FFI binding for Rf_isMatrix. Generated from source location line 866, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isNewList⚠
Checked wrapper for Rf_isNewList. Calls Rf_isNewList_unchecked and routes through with_r_thread. Generated from source location line 870, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isNewList_unchecked⚠
Unchecked FFI binding for Rf_isNewList. Generated from source location line 870, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isNull⚠
Checked wrapper for Rf_isNull. Calls Rf_isNull_unchecked and routes through with_r_thread. Generated from source location line 846, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isNull_unchecked⚠
Unchecked FFI binding for Rf_isNull. Generated from source location line 846, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isObject⚠
Checked wrapper for Rf_isObject. Calls Rf_isObject_unchecked and routes through with_r_thread. Generated from source location line 886, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isObject_unchecked⚠
Unchecked FFI binding for Rf_isObject. Generated from source location line 886, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isOrdered⚠
Check if a factor is ordered. Checked wrapper for Rf_isOrdered. Calls Rf_isOrdered_unchecked and routes through with_r_thread. Generated from source location line 2650, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isOrdered_unchecked⚠
Check if a factor is ordered. Unchecked FFI binding for Rf_isOrdered. Generated from source location line 2650, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isPairList⚠
Checked wrapper for Rf_isPairList. Calls Rf_isPairList_unchecked and routes through with_r_thread. Generated from source location line 872, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isPairList_unchecked⚠
Unchecked FFI binding for Rf_isPairList. Generated from source location line 872, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isPrimitive⚠
Checked wrapper for Rf_isPrimitive. Calls Rf_isPrimitive_unchecked and routes through with_r_thread. Generated from source location line 876, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isPrimitive_unchecked⚠
Unchecked FFI binding for Rf_isPrimitive. Generated from source location line 876, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isReal⚠
Checked wrapper for Rf_isReal. Calls Rf_isReal_unchecked and routes through with_r_thread. Generated from source location line 852, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isReal_unchecked⚠
Unchecked FFI binding for Rf_isReal. Generated from source location line 852, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isS4⚠
Check if a SEXP is an S4 object.
Rf_isString⚠
Checked wrapper for Rf_isString. Calls Rf_isString_unchecked and routes through with_r_thread. Generated from source location line 860, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isString_unchecked⚠
Unchecked FFI binding for Rf_isString. Generated from source location line 860, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isSymbol⚠
Checked wrapper for Rf_isSymbol. Calls Rf_isSymbol_unchecked and routes through with_r_thread. Generated from source location line 848, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isSymbol_unchecked⚠
Unchecked FFI binding for Rf_isSymbol. Generated from source location line 848, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isUnordered⚠
Check if a factor is unordered. Checked wrapper for Rf_isUnordered. Calls Rf_isUnordered_unchecked and routes through with_r_thread. Generated from source location line 2654, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isUnordered_unchecked⚠
Check if a factor is unordered. Unchecked FFI binding for Rf_isUnordered. Generated from source location line 2654, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_isUnsorted⚠
Check if a vector is unsorted.
Rf_isUnsorted_unchecked⚠
Check if a vector is unsorted.
Rf_lang1⚠
Build a language object (call) with 1 element (the function).
Rf_lang2⚠
Build a language object (call) with function and 1 argument.
Rf_lang3⚠
Build a language object (call) with function and 2 arguments.
Rf_lang4⚠
Build a language object (call) with function and 3 arguments.
Rf_lang5⚠
Build a language object (call) with function and 4 arguments.
Rf_lang6⚠
Build a language object (call) with function and 5 arguments.
Rf_lastElt⚠
Checked wrapper for Rf_lastElt. Calls Rf_lastElt_unchecked and routes through with_r_thread. Generated from source location line 892, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_lastElt_unchecked⚠
Unchecked FFI binding for Rf_lastElt. Generated from source location line 892, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_lcons⚠
Checked wrapper for Rf_lcons. Calls Rf_lcons_unchecked and routes through with_r_thread. Generated from source location line 513, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_lcons_unchecked⚠
Unchecked FFI binding for Rf_lcons. Generated from source location line 513, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_lengthgets⚠
Set vector length.
Rf_lengthgets_unchecked⚠
Set vector length.
Rf_list1⚠
Build a pairlist with 1 element.
Rf_list2⚠
Build a pairlist with 2 elements.
Rf_list3⚠
Build a pairlist with 3 elements.
Rf_list4⚠
Build a pairlist with 4 elements.
Rf_listAppend⚠
Checked wrapper for Rf_listAppend. Calls Rf_listAppend_unchecked and routes through with_r_thread. Generated from source location line 896, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_listAppend_unchecked⚠
Unchecked FFI binding for Rf_listAppend. Generated from source location line 896, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_match⚠
Match elements of first vector in second vector.
Rf_match_unchecked⚠
Match elements of first vector in second vector.
Rf_mkChar⚠
Checked wrapper for Rf_mkChar. Calls Rf_mkChar_unchecked and routes through with_r_thread. Generated from source location line 312, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_mkCharCE 🔒 ⚠
Create a CHARSXP with specified encoding.
Rf_mkCharCE_unchecked 🔒 ⚠
Create a CHARSXP with specified encoding.
Rf_mkCharLen⚠
Checked wrapper for Rf_mkCharLen. Calls Rf_mkCharLen_unchecked and routes through with_r_thread. Generated from source location line 314, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_mkCharLenCE⚠
Checked wrapper for Rf_mkCharLenCE. Calls Rf_mkCharLenCE_unchecked and routes through with_r_thread. Generated from source location line 316, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_mkCharLenCE_unchecked⚠
Unchecked FFI binding for Rf_mkCharLenCE. Generated from source location line 316, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_mkCharLen_unchecked⚠
Unchecked FFI binding for Rf_mkCharLen. Generated from source location line 314, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_mkChar_unchecked⚠
Unchecked FFI binding for Rf_mkChar. Generated from source location line 312, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_mkString⚠
Create a length-1 string vector from a C string.
Rf_namesgets⚠
Set the names attribute; returns the updated object. Checked wrapper for Rf_namesgets. Calls Rf_namesgets_unchecked and routes through with_r_thread. Generated from source location line 771, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_namesgets_unchecked⚠
Set the names attribute; returns the updated object. Unchecked FFI binding for Rf_namesgets. Generated from source location line 771, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ncols⚠
Checked wrapper for Rf_ncols. Calls Rf_ncols_unchecked and routes through with_r_thread. Generated from source location line 838, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_ncols_unchecked⚠
Unchecked FFI binding for Rf_ncols. Generated from source location line 838, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_nrows⚠
Checked wrapper for Rf_nrows. Calls Rf_nrows_unchecked and routes through with_r_thread. Generated from source location line 836, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_nrows_unchecked⚠
Unchecked FFI binding for Rf_nrows. Generated from source location line 836, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_nthcdr⚠
Checked wrapper for Rf_nthcdr. Calls Rf_nthcdr_unchecked and routes through with_r_thread. Generated from source location line 894, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_nthcdr_unchecked⚠
Unchecked FFI binding for Rf_nthcdr. Generated from source location line 894, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_pnorm5⚠
Normal distribution function: pnorm(x, mean = mu, sd = sigma, lower.tail = lower_tail, log.p = log_p).
Rf_pnorm5_unchecked⚠
Normal distribution function: pnorm(x, mean = mu, sd = sigma, lower.tail = lower_tail, log.p = log_p).
Rf_protect⚠
Add a SEXP to the protect stack, preventing GC collection.
Rf_protect_unchecked⚠
Add a SEXP to the protect stack, preventing GC collection.
Rf_qchisq⚠
Chi-squared quantile function: qchisq(p, df, lower.tail = lower_tail, log.p = log_p) (central only; stats::qchisq with ncp calls a different routine).
Rf_qchisq_unchecked⚠
Chi-squared quantile function: qchisq(p, df, lower.tail = lower_tail, log.p = log_p) (central only; stats::qchisq with ncp calls a different routine).
Rf_qnorm5⚠
Normal quantile function: qnorm(p, mean = mu, sd = sigma, lower.tail = lower_tail, log.p = log_p).
Rf_qnorm5_unchecked⚠
Normal quantile function: qnorm(p, mean = mu, sd = sigma, lower.tail = lower_tail, log.p = log_p).
Rf_setAttrib⚠
Checked wrapper for Rf_setAttrib. Calls Rf_setAttrib_unchecked and routes through with_r_thread. Generated from source location line 517, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_setAttrib_unchecked⚠
Unchecked FFI binding for Rf_setAttrib. Generated from source location line 517, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_setVar⚠
Checked wrapper for Rf_setVar. Calls Rf_setVar_unchecked and routes through with_r_thread. Generated from source location line 944, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_setVar_unchecked⚠
Unchecked FFI binding for Rf_setVar. Generated from source location line 944, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_shallow_duplicate⚠
Checked wrapper for Rf_shallow_duplicate. Calls Rf_shallow_duplicate_unchecked and routes through with_r_thread. Generated from source location line 780, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_shallow_duplicate_unchecked⚠
Unchecked FFI binding for Rf_shallow_duplicate. Generated from source location line 780, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_substitute⚠
Substitute in an expression.
Rf_substitute_unchecked⚠
Substitute in an expression.
Rf_topenv⚠
Get the top-level environment.
Rf_topenv_unchecked⚠
Get the top-level environment.
Rf_translateCharUTF8⚠
Checked wrapper for Rf_translateCharUTF8. Calls Rf_translateCharUTF8_unchecked and routes through with_r_thread. Generated from source location line 325, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_translateCharUTF8_unchecked⚠
Unchecked FFI binding for Rf_translateCharUTF8. Generated from source location line 325, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_type2char⚠
Convert SEXPTYPE to C string name.
Rf_type2char_unchecked⚠
Convert SEXPTYPE to C string name.
Rf_unprotect⚠
Pop the top l entries from the protect stack.
Rf_unprotect_ptr⚠
Remove a specific SEXP from anywhere in the protect stack.
Rf_unprotect_ptr_unchecked⚠
Remove a specific SEXP from anywhere in the protect stack.
Rf_unprotect_unchecked⚠
Pop the top l entries from the protect stack.
Rf_warning⚠
Checked wrapper for Rf_warning - panics if called from non-main thread.
Rf_warning_unchecked⚠
Unchecked variadic Rf_warning; call checked wrapper when possible.
Rf_xlength⚠
Checked wrapper for Rf_xlength. Calls Rf_xlength_unchecked and routes through with_r_thread. Generated from source location line 323, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_xlength_unchecked⚠
Unchecked FFI binding for Rf_xlength. Generated from source location line 323, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_xlengthgets⚠
Set vector length (long vector version). Checked wrapper for Rf_xlengthgets. Calls Rf_xlengthgets_unchecked and routes through with_r_thread. Generated from source location line 2681, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rf_xlengthgets_unchecked⚠
Set vector length (long vector version). Unchecked FFI binding for Rf_xlengthgets. Generated from source location line 2681, column 12. Generated from source file miniextendr-api/src/sys.rs.
Rprintf⚠
Checked wrapper for Rprintf - panics if called from non-main thread.
Rprintf_unchecked⚠
Unchecked variadic Rprintf; call checked wrapper when possible.
SETCAD4R⚠
Checked wrapper for SETCAD4R. Calls SETCAD4R_unchecked and routes through with_r_thread. Generated from source location line 583, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCAD4R_unchecked⚠
Unchecked FFI binding for SETCAD4R. Generated from source location line 583, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCADDDR⚠
Checked wrapper for SETCADDDR. Calls SETCADDDR_unchecked and routes through with_r_thread. Generated from source location line 582, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCADDDR_unchecked⚠
Unchecked FFI binding for SETCADDDR. Generated from source location line 582, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCADDR⚠
Checked wrapper for SETCADDR. Calls SETCADDR_unchecked and routes through with_r_thread. Generated from source location line 581, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCADDR_unchecked⚠
Unchecked FFI binding for SETCADDR. Generated from source location line 581, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCADR⚠
Checked wrapper for SETCADR. Calls SETCADR_unchecked and routes through with_r_thread. Generated from source location line 580, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCADR_unchecked⚠
Unchecked FFI binding for SETCADR. Generated from source location line 580, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCAR⚠
Checked wrapper for SETCAR. Calls SETCAR_unchecked and routes through with_r_thread. Generated from source location line 578, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCAR_unchecked⚠
Unchecked FFI binding for SETCAR. Generated from source location line 578, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCDR⚠
Checked wrapper for SETCDR. Calls SETCDR_unchecked and routes through with_r_thread. Generated from source location line 579, column 12. Generated from source file miniextendr-api/src/sys.rs.
SETCDR_unchecked⚠
Unchecked FFI binding for SETCDR. Generated from source location line 579, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_COMPLEX_ELT⚠
Checked wrapper for SET_COMPLEX_ELT. Calls SET_COMPLEX_ELT_unchecked and routes through with_r_thread. Generated from source location line 602, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_COMPLEX_ELT_unchecked⚠
Unchecked FFI binding for SET_COMPLEX_ELT. Generated from source location line 602, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_INTEGER_ELT⚠
Checked wrapper for SET_INTEGER_ELT. Calls SET_INTEGER_ELT_unchecked and routes through with_r_thread. Generated from source location line 600, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_INTEGER_ELT_unchecked⚠
Unchecked FFI binding for SET_INTEGER_ELT. Generated from source location line 600, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_LOGICAL_ELT⚠
Checked wrapper for SET_LOGICAL_ELT. Calls SET_LOGICAL_ELT_unchecked and routes through with_r_thread. Generated from source location line 599, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_LOGICAL_ELT_unchecked⚠
Unchecked FFI binding for SET_LOGICAL_ELT. Generated from source location line 599, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_RAW_ELT⚠
Checked wrapper for SET_RAW_ELT. Calls SET_RAW_ELT_unchecked and routes through with_r_thread. Generated from source location line 603, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_RAW_ELT_unchecked⚠
Unchecked FFI binding for SET_RAW_ELT. Generated from source location line 603, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_REAL_ELT⚠
Checked wrapper for SET_REAL_ELT. Calls SET_REAL_ELT_unchecked and routes through with_r_thread. Generated from source location line 601, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_REAL_ELT_unchecked⚠
Unchecked FFI binding for SET_REAL_ELT. Generated from source location line 601, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_STRING_ELT⚠
Checked wrapper for SET_STRING_ELT. Calls SET_STRING_ELT_unchecked and routes through with_r_thread. Generated from source location line 598, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_STRING_ELT_unchecked⚠
Unchecked FFI binding for SET_STRING_ELT. Generated from source location line 598, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_TAG⚠
Checked wrapper for SET_TAG. Calls SET_TAG_unchecked and routes through with_r_thread. Generated from source location line 577, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_TAG_unchecked⚠
Unchecked FFI binding for SET_TAG. Generated from source location line 577, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_VECTOR_ELT⚠
Checked wrapper for SET_VECTOR_ELT. Calls SET_VECTOR_ELT_unchecked and routes through with_r_thread. Generated from source location line 604, column 12. Generated from source file miniextendr-api/src/sys.rs.
SET_VECTOR_ELT_unchecked⚠
Unchecked FFI binding for SET_VECTOR_ELT. Generated from source location line 604, column 12. Generated from source file miniextendr-api/src/sys.rs.
STRING_ELT⚠
Checked wrapper for STRING_ELT. Calls STRING_ELT_unchecked and routes through with_r_thread. Generated from source location line 597, column 12. Generated from source file miniextendr-api/src/sys.rs.
STRING_ELT_unchecked⚠
Unchecked FFI binding for STRING_ELT. Generated from source location line 597, column 12. Generated from source file miniextendr-api/src/sys.rs.
S_alloc⚠
S compatibility: allocate zeroed memory on R’s memory stack.
S_alloc_unchecked⚠
S compatibility: allocate zeroed memory on R’s memory stack.
S_realloc⚠
S compatibility: reallocate memory on R’s memory stack.
S_realloc_unchecked⚠
S compatibility: reallocate memory on R’s memory stack.
StringFalse⚠
Check if a string represents FALSE in R.
StringFalse_unchecked⚠
Check if a string represents FALSE in R.
StringTrue⚠
Check if a string represents TRUE in R.
StringTrue_unchecked⚠
Check if a string represents TRUE in R.
TAG⚠
Checked wrapper for TAG. Calls TAG_unchecked and routes through with_r_thread. Generated from source location line 576, column 12. Generated from source file miniextendr-api/src/sys.rs.
TAG_unchecked⚠
Unchecked FFI binding for TAG. Generated from source location line 576, column 12. Generated from source file miniextendr-api/src/sys.rs.
TYPEOF⚠
Checked wrapper for TYPEOF. Calls TYPEOF_unchecked and routes through with_r_thread. Generated from source location line 749, column 12. Generated from source file miniextendr-api/src/sys.rs.
TYPEOF_unchecked⚠
Unchecked FFI binding for TYPEOF. Generated from source location line 749, column 12. Generated from source file miniextendr-api/src/sys.rs.
VECTOR_ELT⚠
Checked wrapper for VECTOR_ELT. Calls VECTOR_ELT_unchecked and routes through with_r_thread. Generated from source location line 596, column 12. Generated from source file miniextendr-api/src/sys.rs.
VECTOR_ELT_unchecked⚠
Unchecked FFI binding for VECTOR_ELT. Generated from source location line 596, column 12. Generated from source file miniextendr-api/src/sys.rs.
XLENGTH⚠
Get the length of a SEXP as R_xlen_t (supports long vectors).
XLENGTH_unchecked⚠
Get the length of a SEXP as R_xlen_t (supports long vectors).
cPsort⚠
Partial sort complex numbers.
cPsort_unchecked⚠
Partial sort complex numbers.
exp_rand⚠
Generate an exponential random number with rate 1.
exp_rand_unchecked⚠
Generate an exponential random number with rate 1.
findInterval⚠
Find the interval containing a value (binary search).
findInterval2⚠
Extended interval finding with left-open option. Checked wrapper for findInterval2. Calls findInterval2_unchecked and routes through with_r_thread. Generated from source location line 2441, column 12. Generated from source file miniextendr-api/src/sys.rs.
findInterval2_unchecked⚠
Extended interval finding with left-open option. Unchecked FFI binding for findInterval2. Generated from source location line 2441, column 12. Generated from source file miniextendr-api/src/sys.rs.
findInterval_unchecked⚠
Find the interval containing a value (binary search).
iPsort⚠
Partial sort integers (moves k-th smallest to position k).
iPsort_unchecked⚠
Partial sort integers (moves k-th smallest to position k).
isBlankString⚠
Check if a string is blank (empty or only whitespace). Checked wrapper for isBlankString. Calls isBlankString_unchecked and routes through with_r_thread. Generated from source location line 2483, column 12. Generated from source file miniextendr-api/src/sys.rs.
isBlankString_unchecked⚠
Check if a string is blank (empty or only whitespace). Unchecked FFI binding for isBlankString. Generated from source location line 2483, column 12. Generated from source file miniextendr-api/src/sys.rs.
lbfgsb⚠
Bound-constrained limited-memory BFGS minimiser: lbfgsb in R_ext/Applic.h, the routine behind optim(method = "L-BFGS-B").
lbfgsb_unchecked⚠
Bound-constrained limited-memory BFGS minimiser: lbfgsb in R_ext/Applic.h, the routine behind optim(method = "L-BFGS-B").
norm_rand⚠
Generate a standard normal random number (mean 0, sd 1).
norm_rand_unchecked⚠
Generate a standard normal random number (mean 0, sd 1).
rPsort⚠
Partial sort doubles (moves k-th smallest to position k).
rPsort_unchecked⚠
Partial sort doubles (moves k-th smallest to position k).
revsort⚠
Sort doubles in descending order, carrying along an index array.
revsort_unchecked⚠
Sort doubles in descending order, carrying along an index array.
rsort_with_index⚠
Sort doubles with index array.
rsort_with_index_unchecked⚠
Sort doubles with index array.
unif_rand⚠
Generate a uniform random number in (0, 1).
unif_rand_unchecked⚠
Generate a uniform random number in (0, 1).
vmaxget⚠
Get the current R memory stack watermark.
vmaxget_unchecked⚠
Get the current R memory stack watermark.
vmaxset⚠
Set the R memory stack watermark, freeing memory allocated since the mark.
vmaxset_unchecked⚠
Set the R memory stack watermark, freeing memory allocated since the mark.

Type Aliases§

DL_FUNC
Generic dynamic library function pointer.
R_ExternalMethodDef
Method definition for .External interface routines.
R_FortranMethodDef
Method definition for .Fortran interface routines.
R_NativePrimitiveArgType
Type descriptor for native primitive arguments in .C/.Fortran calls.
optimfn
Objective callback type for R’s optimisers: optimfn in R_ext/Applic.h, typedef double optimfn(int n, double *par, void *ex).
optimgr
Gradient callback type for R’s optimisers: optimgr in R_ext/Applic.h, typedef void optimgr(int n, double *par, double *gr, void *ex).