Skip to main contentModule rlang_ffi
Source - arg π
- Get the nth arg, returning NULL if missing.
- as_char_vec π
- Extract a character vector from an RValue.
- check_character_constraints π
- Check character-specific constraints: missing (NA) and empty (ββ) values.
- check_length π
- Check if length matches expected n (None = no restriction).
- ffi_cnd_type π
- ffi_cnd_type(x) β return the condition type.
Inspects the class attribute to determine if itβs an error, warning,
message, or generic condition.
- ffi_duplicate π
- ffi_duplicate(x, shallow) β deep or shallow copy.
In miniR, RValue::clone() is always a deep copy since we use Rc<RefCell<>>
for environments.
- ffi_env_binding_types π
- ffi_env_binding_types(env, names) β return binding types as an integer vector.
Types: 0 = regular, 1 = active binding, 2 = promise
- ffi_env_clone π
- ffi_env_clone(env) β clone an environment (shallow: same parent, copy bindings).
- ffi_env_has π
- ffi_env_has(env, names, inherit)
- ffi_env_poke_parent π
- ffi_env_poke_parent(env, parent) β set the parent of an environment.
- ffi_find_var π
- ffi_find_var(sym, env) β find a variable in an environment.
- ffi_format_error_arg π
- ffi_format_error_arg(x) β format an argument for error messages.
Returns the argument as a backtick-quoted string.
- ffi_hash π
- ffi_hash(x) β compute a hash of x.
- ffi_is_atomic π
- ffi_is_atomic(x, n) β TRUE for atomic vectors and NULL
- ffi_is_call π
- ffi_is_call(x, name, n, ns)
- ffi_is_character π
- ffi_is_character(x, n, missing, empty)
- ffi_is_closure π
- ffi_is_closure(x)
- ffi_is_complex π
- ffi_is_complex(x, n, finite)
- ffi_is_double π
- ffi_is_double(x, n, finite)
- ffi_is_finite π
- ffi_is_finite(x) β all elements are finite
- ffi_is_formula π
- ffi_is_formula(x, n, lhs)
- ffi_is_function π
- ffi_is_function(x)
- ffi_is_integer π
- ffi_is_integer(x, n)
- ffi_is_integerish π
- ffi_is_integerish(x, n, finite)
- ffi_is_list π
- ffi_is_list(x, n)
- ffi_is_logical π
- ffi_is_logical(x, n)
- ffi_is_primitive π
- ffi_is_primitive(x)
- ffi_is_primitive_eager π
- ffi_is_primitive_eager(x) β in miniR all builtins are eager
- ffi_is_primitive_lazy π
- ffi_is_primitive_lazy(x) β in miniR no builtins are lazy
- ffi_is_raw π
- ffi_is_raw(x, n)
- ffi_is_reference π
- ffi_is_reference(x, y) β check if two objects are identical (pointer-equal
for environments, deep-equal for others).
- ffi_is_string π
- ffi_is_string(x, string, empty)
- ffi_is_vector π
- ffi_is_vector(x, n) β TRUE for atomic vectors and lists
- ffi_length π
- ffi_length(x) β return length as integer
- ffi_names π
- ffi_names(x) β return names attribute
- ffi_ns_registry_env π
- ffi_ns_registry_env() β return the namespace registry (empty environment).
- ffi_obj_address π
- ffi_obj_address(x) β return address as hex string.
We use a hash of the debug representation since RValues donβt have stable addresses.
- ffi_set_names π
- ffi_set_names(x, names, transform) β set names on x.
transform is ignored (itβs a function for name transformation). - ffi_standalone_check_number π
- ffi_standalone_check_number(x, allow_decimal, min, max, allow_infinite, allow_na, allow_null) -> integer
Returns 0 for success, positive integer for various failure codes.
- ffi_standalone_is_bool π
- ffi_standalone_is_bool(x, allow_na, allow_null) -> logical
- ffi_symbol π
- ffi_symbol(x) β create a symbol (language object) from a string.
- int_scalar π
- Extract an integer scalar from an RValue, or None if NULL.
- int_val π
- is_r_null π
- Check if an arg is R NULL (meaning βno restrictionβ in rlang type checks).
- lgl π
- lgl_scalar π
- Extract a logical scalar from an RValue, or None if NULL.
- r_bool π
- r_false π
- register_rlang_ccallables
- Register all rlang CCallable functions in the cross-package registry.
- rlang_arg_match π
- arg_match β match an argument to allowed values (legacy).
- rlang_arg_match_2 π
- arg_match_2 β match an argument to allowed values.
- rlang_as_data_mask π
- Convert data to a data mask.
- rlang_as_data_pronoun π
- Create a data pronoun from an environment.
- rlang_as_function π
- Coerce to function β if itβs already a function, return it.
- rlang_env_dots_list π
- Get dots as a list from an environment.
- rlang_env_dots_values π
- Get dots values from an environment.
- rlang_env_print π
- Print environment β no-op.
- rlang_env_unbind π
- Unbind variables from an environment.
- rlang_eval_tidy π
- Evaluate an expression in a tidy evaluation context.
- rlang_format_error_arg π
- Format an argument name for error messages.
- rlang_is_quosure π
- Check if an object is a quosure.
- rlang_is_splice_box π
- is_splice_box β check if object is a splice box.
- rlang_names_as_unique π
- Make names unique by appending β¦1, β¦2, etc. for duplicates/NA/empty.
- rlang_new_data_mask π
- Create a new data mask from bottom and top environments.
- rlang_new_quosure π
- Create a new quosure.
- rlang_obj_encode_utf8 π
- Encode a character vector as UTF-8.
- rlang_obj_type_friendly_full π
- Return a human-friendly type description for an R object.
- rlang_print_backtrace π
- Print backtrace β no-op.
- rlang_quo_get_env π
- Get the environment from a quosure.
- rlang_quo_get_expr π
- Get the expression from a quosure.
- rlang_quo_set_env π
- Set the environment on a quosure.
- rlang_quo_set_expr π
- Set the expression on a quosure.
- rlang_squash_if π
- Squash a list conditionally.
- rlang_stop_internal π
- rlang_stop_internal β abort with an internal error message.
- rlang_stop_internal2 π
- rlang_stop_internal2 β abort with file/line context.
- rlang_str_as_symbol π
- Convert a CHARSXP or scalar STRSXP to a symbol (SYMSXP).
- rlang_sym_as_character π
- Convert a symbol to a character SEXP.
- rlang_sym_as_string π
- Convert a symbol to a string SEXP (CHARSXP).
- rlang_unbox π
- Unbox a scalar value from a list.
- rlang_xxh3_64bits π
- xxh3_64bits hash β return 0 as stub.
- try_dispatch
- Try to dispatch an rlang FFI function by symbol name.