resolve_r_binding: Resolve an R Binding

View source: R/r_context_tools.R

resolve_r_bindingR Documentation

Resolve an R Binding

Description

Resolve a symbol-like name against the live session environment, attached search path, and loaded namespaces.

Usage

resolve_r_binding(
  name,
  package = NULL,
  session = NULL,
  envir = NULL,
  scope = c("session", "workspace", "all"),
  prefer = c("auto", "object", "function")
)

Arguments

name

Symbol-like name to resolve.

package

Optional package/namespace name to search first.

session

Optional ChatSession or SharedSession.

envir

Optional environment. Ignored when session is provided.

scope

Where to resolve live objects before the search path: "session" checks only the session environment, "workspace" checks only .GlobalEnv, and "all" checks session environment first, then .GlobalEnv.

prefer

Preferred kind: "auto", "object", or "function".

Value

A binding record list or NULL if not found.


aisdk documentation built on May 29, 2026, 9:07 a.m.