Skip to contents

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)
#> [1] FALSE