is_charpack: Test for a charpack

View source: R/charpack.R

is_charpackR Documentation

Test for a charpack

Description

A charpack is a compact ALTREP character vector whose strings live in one raw vector. Packages create them through the C API.

Usage

is_charpack(x)

Arguments

x

object to test.

Value

TRUE if x is a charpack ALTREP vector, FALSE otherwise. A materialized charpack is still a charpack.

Examples

is_charpack(letters)

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