as_preview_text: Render a Compact Preview String

View source: R/semantic_adapter.R

as_preview_textR Documentation

Render a Compact Preview String

Description

Convert common vector-like and tabular objects into a short text preview for summaries and inspection output.

Usage

as_preview_text(x, max_items = 5)

Arguments

x

Object to preview.

max_items

Maximum number of items or rows to include.

Value

A character string preview or NULL when no preview is available.


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