list_r_objects: List Live R Objects

View source: R/r_context_tools.R

list_r_objectsR Documentation

List Live R Objects

Description

List live objects visible in the session environment.

Usage

list_r_objects(
  session = NULL,
  envir = NULL,
  pattern = NULL,
  include_hidden = FALSE,
  limit = 50L,
  scope = c("session", "workspace", "all")
)

Arguments

session

Optional ChatSession or SharedSession.

envir

Optional environment. Ignored when session is provided.

pattern

Optional regex pattern used to filter names.

include_hidden

Logical; whether to include names starting with ".".

limit

Maximum number of rows to return.

scope

One of "session", "workspace", or "all". Defaults to "session" for compatibility. "workspace" lists .GlobalEnv; "all" lists session environment objects followed by .GlobalEnv objects and includes a location column.

Value

A data frame with object metadata.


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