inspect_r_object: Inspect a Live R Object

View source: R/r_context_tools.R

inspect_r_objectR Documentation

Inspect a Live R Object

Description

Inspect a symbol resolved from the live session environment.

Usage

inspect_r_object(
  name,
  detail = c("summary", "full", "structured"),
  session = NULL,
  envir = NULL,
  head_rows = 6L,
  scope = c("all", "session", "workspace")
)

Arguments

name

Symbol-like object name.

detail

One of "summary", "full", or "structured".

session

Optional ChatSession or SharedSession.

envir

Optional environment. Ignored when session is provided.

head_rows

Maximum preview rows for inspection renderers.

scope

Where to resolve the object. Defaults to "all" so console inspection can see session objects and .GlobalEnv read-only.

Value

A character string for "summary"/"full" or a structured list for "structured".


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