inspect_r_function: Inspect an R Function

View source: R/r_context_tools.R

inspect_r_functionR Documentation

Inspect an R Function

Description

Inspect function signature and provenance without dumping full source by default.

Usage

inspect_r_function(
  name,
  package = NULL,
  detail = c("summary", "full"),
  include_methods = FALSE,
  session = NULL,
  envir = NULL
)

Arguments

name

Function name.

package

Optional package/namespace name.

detail

One of "summary" or "full".

include_methods

Logical; whether to include S3/S4 method previews.

session

Optional ChatSession or SharedSession.

envir

Optional environment. Ignored when session is provided.

Value

A character string inspection.


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