charport_class_of: Registered ALTREP class serving a character vector

View source: R/registry.R

charport_class_ofR Documentation

Registered ALTREP class serving a character vector

Description

Identifies whether a registered ALTREP class claims x. This is a class-membership question answered without touching the vector's data: it never materializes x and reports a match even when the class reader would decline to serve this particular instance (for example, a materialized charvec).

Usage

charport_class_of(x)

Arguments

x

a character vector.

Value

"package::class" for a registered class match when class metadata is available; otherwise NA_character_.

Examples

charport_class_of(charvec("a"))
charport_class_of(letters)

charport documentation built on Nov. 27, 2026, 9:06 a.m.