Expand description
Interpreter-level builtins β functions that receive BuiltinContext so
they can call back into the active interpreter without direct TLS lookups.
Each is auto-registered via #[interpreter_builtin].
StaticsΒ§
- __
INTERP_ πREG_ INTERP_ AGGREGATE - __
INTERP_ πREG_ INTERP_ APPLY - __
INTERP_ πREG_ INTERP_ ASSIGN - __
INTERP_ πREG_ INTERP_ AS_ ENVIRONMENT - __
INTERP_ πREG_ INTERP_ BASEENV - __
INTERP_ πREG_ INTERP_ BINDING_ IS_ LOCKED - __
INTERP_ πREG_ INTERP_ BUILTIN_ COUNT - __
INTERP_ πREG_ INTERP_ BY - __
INTERP_ πREG_ INTERP_ DOT_ GET_ NAMESPACE_ INFO - __
INTERP_ πREG_ INTERP_ DOT_ PRIMITIVE - __
INTERP_ πREG_ INTERP_ DO_ CALL - __
INTERP_ πREG_ INTERP_ EMPTYENV - __
INTERP_ πREG_ INTERP_ ENVIRONMENT - __
INTERP_ πREG_ INTERP_ ENVIRONMENT_ IS_ LOCKED - __
INTERP_ πREG_ INTERP_ EVAL - __
INTERP_ πREG_ INTERP_ EXISTS - __
INTERP_ πREG_ INTERP_ FILTER - __
INTERP_ πREG_ INTERP_ FIND - __
INTERP_ πREG_ INTERP_ FIND_ ON_ SEARCH_ PATH - __
INTERP_ πREG_ INTERP_ FORMAT - __
INTERP_ πREG_ INTERP_ GET - __
INTERP_ πREG_ INTERP_ GET0 - __
INTERP_ πREG_ INTERP_ GET_ NAMESPACE - __
INTERP_ πREG_ INTERP_ GET_ NAMESPACE_ EXPORTS - __
INTERP_ πREG_ INTERP_ GET_ NAMESPACE_ INFO - __
INTERP_ πREG_ INTERP_ GET_ OPTION - __
INTERP_ πREG_ INTERP_ GLOBALENV - __
INTERP_ πREG_ INTERP_ INVISIBLE - __
INTERP_ πREG_ INTERP_ IS_ ACTIVE_ BINDING - __
INTERP_ πREG_ INTERP_ IS_ NAMESPACE_ LOADED - __
INTERP_ πREG_ INTERP_ LAPPLY - __
INTERP_ πREG_ INTERP_ LOADED_ NAMESPACES - __
INTERP_ πREG_ INTERP_ LOCK_ BINDING - __
INTERP_ πREG_ INTERP_ LOCK_ ENVIRONMENT - __
INTERP_ πREG_ INTERP_ LS - __
INTERP_ πREG_ INTERP_ MAKE_ ACTIVE_ BINDING - __
INTERP_ πREG_ INTERP_ MAP - __
INTERP_ πREG_ INTERP_ MAPPLY - __
INTERP_ πREG_ INTERP_ MATCH_ CALL - __
INTERP_ πREG_ INTERP_ NARGS - __
INTERP_ πREG_ INTERP_ NEGATE - __
INTERP_ πREG_ INTERP_ NEXT_ METHOD - __
INTERP_ πREG_ INTERP_ OPTIONS - __
INTERP_ πREG_ INTERP_ OP_ ADD - __
INTERP_ πREG_ INTERP_ OP_ AND - __
INTERP_ πREG_ INTERP_ OP_ DIV - __
INTERP_ πREG_ INTERP_ OP_ EQ - __
INTERP_ πREG_ INTERP_ OP_ GE - __
INTERP_ πREG_ INTERP_ OP_ GT - __
INTERP_ πREG_ INTERP_ OP_ INTDIV - __
INTERP_ πREG_ INTERP_ OP_ LE - __
INTERP_ πREG_ INTERP_ OP_ LT - __
INTERP_ πREG_ INTERP_ OP_ MOD - __
INTERP_ πREG_ INTERP_ OP_ MUL - __
INTERP_ πREG_ INTERP_ OP_ NE - __
INTERP_ πREG_ INTERP_ OP_ NOT - __
INTERP_ πREG_ INTERP_ OP_ OR - __
INTERP_ πREG_ INTERP_ OP_ POW - __
INTERP_ πREG_ INTERP_ OP_ SUB - __
INTERP_ πREG_ INTERP_ OUTER - __
INTERP_ πREG_ INTERP_ PACKAGE_ DESCRIPTION - __
INTERP_ πREG_ INTERP_ PACKAGE_ VERSION - __
INTERP_ πREG_ INTERP_ PARENT_ FRAME - __
INTERP_ πREG_ INTERP_ PARSE - __
INTERP_ πREG_ INTERP_ POSITION - __
INTERP_ πREG_ INTERP_ PRINT - __
INTERP_ πREG_ INTERP_ PRINT_ DATA_ FRAME - __
INTERP_ πREG_ INTERP_ PRINT_ FACTOR - __
INTERP_ πREG_ INTERP_ PRINT_ MATRIX - __
INTERP_ πREG_ INTERP_ RAPPLY - __
INTERP_ πREG_ INTERP_ RECALL - __
INTERP_ πREG_ INTERP_ REDUCE - __
INTERP_ πREG_ INTERP_ REG_ FINALIZER - __
INTERP_ πREG_ INTERP_ SAPPLY - __
INTERP_ πREG_ INTERP_ SEARCH - __
INTERP_ πREG_ INTERP_ SOURCE - __
INTERP_ πREG_ INTERP_ SPLIT - __
INTERP_ πREG_ INTERP_ SUMMARY - __
INTERP_ πREG_ INTERP_ SYS_ CALL - __
INTERP_ πREG_ INTERP_ SYS_ CALLS - __
INTERP_ πREG_ INTERP_ SYS_ FRAME - __
INTERP_ πREG_ INTERP_ SYS_ FRAMES - __
INTERP_ πREG_ INTERP_ SYS_ FUNCTION - __
INTERP_ πREG_ INTERP_ SYS_ NFRAME - __
INTERP_ πREG_ INTERP_ SYS_ ON_ EXIT - __
INTERP_ πREG_ INTERP_ SYS_ PARENTS - __
INTERP_ πREG_ INTERP_ SYS_ SOURCE - __
INTERP_ πREG_ INTERP_ TAPPLY - __
INTERP_ πREG_ INTERP_ UNSPLIT - __
INTERP_ πREG_ INTERP_ VAPPLY - __
INTERP_ πREG_ INTERP_ VECTORIZE
FunctionsΒ§
- aggregate_
formula π - Formula interface for aggregate: aggregate(y ~ x, data=df, FUN=mean)
- aggregate_
standard π - Standard (non-formula) aggregate: aggregate(x, by, FUN)
- build_
outer_ πmatrix - Build an RVector matrix with class, dim, and optional dimnames.
- collect_
symbol_ πnames - Collect all symbol names from an expression (handles +, ., and bare symbols).
- combine_
items_ πto_ vector - Combine a list of scalar RValues back into a single vector RValue.
- df_
column_ πnames - Get all column names from a data frame.
- df_
get_ πcolumn - Get a column from a data frame by name.
- do_
call_ πdelayed_ assign do.call(delayedAssign, list(name, expr, eval.env, assign.env))handler.- do_
call_ πon_ exit - Handle
do.call(on.exit, list(expr, add), envir=env). - eval_
apply π - eval_
binop π - explicit_
classes π - Get explicit class attributes from an RValue. Returns an empty vec for objects without a class attribute.
- extract_
dimnames π - Extract dimnames from a matrixβs attributes.
Returns (row_names, col_names) as optional Vec
. - extract_
fail_ πfast - Extract
fail_fastfrom named args and return the remaining named args. Default isfalse(collect all errors). - extract_
formula_ πvars - Extract column names from a formula expression (e.g., y ~ x parses to lhs=y, rhs=x).
- format_
column_ πelements - Format individual elements of a vector column for data frame printing.
- format_
double_ πwith_ opts - Format a double value with nsmall, digits, big.mark, and scientific options.
- format_
factor_ πlabels - Format factor labels as R-style output with line indices.
- format_
integer_ πwith_ opts - Format an integer value with big.mark option.
- format_
matrix_ πelements - Format matrix elements as strings, stored in row-major order.
- format_
significant_ πdigits - Format a double value to a specified number of significant digits.
- get_
namespace_ πinfo_ impl - insert_
thousands_ πsep - Insert a thousands separator into the integer part of a numeric string.
- interp_
aggregate π - Aggregate data by groups, applying a function to each group.
- interp_
apply π - Apply a function over rows or columns of a matrix.
- interp_
as_ πenvironment - Coerce a value to an environment.
- interp_
assign π - Assign a value to a variable name in an environment.
- interp_
baseenv π - Return the base environment.
- interp_
binding_ πis_ locked - Check whether a binding is locked in an environment.
- interp_
builtin_ πcount - Return the number of builtins registered, optionally filtered by namespace.
- interp_
by π - Apply a function to subsets of a data frame or vector split by a grouping factor.
- interp_
do_ πcall - Call a function with arguments supplied as a list.
- interp_
dot_ πget_ namespace_ info .getNamespaceInfo(ns, which)β internal version.- interp_
dot_ πprimitive .Primitive(name)β look up a primitive/builtin function by name.- interp_
emptyenv π - Return the empty environment (has no parent and no bindings).
- interp_
environment π - Get or query the environment of a function.
- interp_
environment_ πis_ locked - Check whether an environment is locked.
- interp_
eval π - Evaluate an expression in a specified environment.
- interp_
exists π - Test whether a variable exists in an environment.
- interp_
filter π - Select elements of a vector or list for which a predicate returns TRUE.
- interp_
find π - Find the first element of a vector for which a predicate returns TRUE.
- interp_
find_ πon_ search_ path - Find which namespace a function belongs to.
- interp_
format π - Format a value as a character string (S3 generic).
- interp_
get π - Look up a variable by name in an environment.
- interp_
get0 π - Like
get()but returns a default value instead of erroring when not found. - interp_
get_ πnamespace - Get a namespace environment by name.
- interp_
get_ πnamespace_ exports - Get exports from a namespace (list functions in a package).
- interp_
get_ πnamespace_ info getNamespaceInfo(ns, which)β get metadata about a namespace.- interp_
get_ πoption - Get the value of a named global option.
- interp_
globalenv π - Return the global environment.
- interp_
invisible π - Return a value invisibly (suppresses auto-printing).
- interp_
is_ πactive_ binding - Check whether a binding is an active binding.
- interp_
is_ πnamespace_ loaded - Check if a namespace is loaded.
- interp_
lapply π - Apply a function over a vector or list, returning a list.
- interp_
loaded_ πnamespaces - List all loaded namespace names.
- interp_
lock_ πbinding - Lock a specific binding in an environment.
- interp_
lock_ πenvironment - Lock an environment so no new bindings can be added.
- interp_
ls π - List the names of objects in an environment.
- interp_
make_ πactive_ binding - Create an active binding.
- interp_
map π - Apply a function to corresponding elements of multiple vectors or lists.
- interp_
mapply π - Apply a function to corresponding elements of multiple vectors.
- interp_
match_ πcall - Return the call expression with arguments matched to formal parameters.
- interp_
nargs π - Get the number of arguments supplied to the current function call.
- interp_
negate π - Negate a predicate function, returning a new function that returns the logical complement of the original.
- interp_
next_ πmethod - Invoke the next method in an S3 method dispatch chain.
- interp_
op_ πadd - Addition operator as a function (unary positive or binary addition).
- interp_
op_ πand - Element-wise logical AND operator as a function.
- interp_
op_ πdiv - Division operator as a function.
- interp_
op_ πeq - Equality comparison operator as a function.
- interp_
op_ πge - Greater-than-or-equal comparison operator as a function.
- interp_
op_ πgt - Greater-than comparison operator as a function.
- interp_
op_ πintdiv - Integer division operator as a function.
- interp_
op_ πle - Less-than-or-equal comparison operator as a function.
- interp_
op_ πlt - Less-than comparison operator as a function.
- interp_
op_ πmod - Modulo operator as a function.
- interp_
op_ πmul - Multiplication operator as a function.
- interp_
op_ πne - Inequality comparison operator as a function.
- interp_
op_ πnot - Logical NOT operator as a function.
- interp_
op_ πor - Element-wise logical OR operator as a function.
- interp_
op_ πpow - Exponentiation operator as a function.
- interp_
op_ πsub - Subtraction operator as a function (unary negation or binary subtraction).
- interp_
options π - Get or set global options.
- interp_
outer π - Outer product of two vectors, applying FUN to each pair of elements.
- interp_
package_ πdescription - Read the DESCRIPTION file for a package, returning all fields as a named list.
- interp_
package_ πversion - Get the version of an installed package from its DESCRIPTION file.
- interp_
parent_ πframe - Get the environment of the parent (calling) frame.
- interp_
parse π - Parse R source text into a language object.
- interp_
position π - Find the position (1-based index) of the first element where a predicate is TRUE.
- interp_
print π - Print a value to stdout (S3 generic).
- interp_
print_ πdata_ frame - Print a data.frame with aligned columns using TabWriter.
- interp_
print_ πfactor - Print a factor showing level labels instead of integer codes.
- interp_
print_ πmatrix - Print a matrix with row/column labels.
- interp_
rapply π - Recursively apply a function to elements of a (nested) list.
- interp_
recall π - Recursively call the current function with new arguments.
- interp_
reduce π - Reduce a vector or list to a single value by applying a binary function.
- interp_
reg_ πfinalizer - Register a function to be called when an environment is garbage collected,
or at interpreter exit if
onexit = TRUE. - interp_
sapply π - Apply a function over a vector or list, simplifying the result.
- interp_
search π - Return the search path as a character vector.
- interp_
source π - Read and evaluate an R source file.
- interp_
split π - Split a vector or data frame into groups defined by a factor.
- interp_
summary π - Summarize an object (S3 generic).
- interp_
sys_ πcall - Get the call expression of a frame on the call stack.
- interp_
sys_ πcalls - Get the list of all calls on the call stack.
- interp_
sys_ πframe - Get the environment of a frame on the call stack.
- interp_
sys_ πframes - Get the list of all environments on the call stack.
- interp_
sys_ πfunction - Get the function of a frame on the call stack.
- interp_
sys_ πnframe - Get the number of frames on the call stack.
- interp_
sys_ πon_ exit - Get the on.exit expression for the current frame.
- interp_
sys_ πparents - Get the parent frame indices for all frames on the call stack.
- interp_
sys_ πsource - Read and evaluate an R source file in a specified environment.
- interp_
tapply π - Apply a function to groups of values defined by a factor/index.
- interp_
unsplit π - Reverse of split: reassemble a vector from a split list.
- interp_
vapply π - Apply a function over a vector or list with a type-checked return template.
- interp_
vectorize π - Create a vectorized version of a function.
- language_
or_ πnull - match_
fun π - Resolve a function specification: accepts an RValue::Function directly, or a string naming a function to look up in the environment. Equivalent to Rβs match.fun().
- optional_
frame_ πindex - outer_
general π - General outer product: call FUN(x_i, y_j) for each pair and collect into a matrix.
- outer_
names π - Extract the βnamesβ attribute from an RValue as a list of optional strings.
- quantile_
type7 π - Compute a quantile using Rβs type 7 algorithm (the default).
- rapply_
collect π - Helper: collect results of applying f to matching leaf (non-list) elements.
- rapply_
matches_ πclass - Check if an RValueβs type name matches one of the given class names.
- rapply_
replace π - Helper: recursively apply f, preserving list structure (βreplaceβ mode).
- rvalue_
to_ πexpr - Convert an RValue to an Expr for use in match.call() reconstructed calls.
- rvalue_
to_ πitems - Convert an RValue to a Vec of individual items (for apply/map/filter/reduce).
- set_
outer_ πdimnames - Set dimnames on an outer product result matrix if X or Y had names.
- simplify_
apply_ πresults - Simplify apply() results: if all results are scalars, return a vector; if all are equal-length vectors, return a matrix; otherwise return a list.
- split_
impl π - Internal split implementation shared by split() and aggregate().
- try_
s3_ πdispatch - Try S3 dispatch for a generic function. Returns
Ok(Some(result))if a method was found and called,Ok(None)if no method exists (caller should fall through to default behavior).