charport_info: Character vector diagnostics

View source: R/registry.R

charport_infoR Documentation

Character vector diagnostics

Description

Reports non-forcing diagnostics for a possible character vector. This is a preflight/development helper: it does not call 'STRING_ELT()', 'STRING_PTR_RO()', 'DATAPTR()', or any registered reader callback.

Usage

charport_info(x)

Arguments

x

object to inspect.

Details

'is_materialized' means ordinary string pointer storage is available without forcing ('DATAPTR_OR_NULL(x) != NULL'). For base R deferred strings, some elements may have been cached by 'STRING_ELT()' while this still reports 'FALSE'; the field is a full-materialization/direct-pointer diagnostic.

Value

A named list containing 'is_strsxp', 'length', 'is_altrep', 'is_materialized', 'is_registered', reader capability flags, 'stateful_reader', 'reentrant', ALTREP class name/package fields, and 'altrep_class' as '"package::class"' when class metadata is available.

Examples

charport_info(charvec("a"))

charport documentation built on Sept. 21, 2026, 5:09 p.m.