charport_materialize: Force materialization of a character vector

View source: R/charvec.R

charport_materializeR Documentation

Force materialization of a character vector

Description

Forces a 'charvec' to materialize its R-level strings ('CHARSXP's), caching them on the object; the native store is released. Ordinary character vectors are returned unchanged. This is a diagnostic/escape hatch: code that needs guaranteed-plain string storage (for example, before handing a vector to C code that bypasses ALTREP accessors) can call it explicitly.

Usage

charport_materialize(x)

Arguments

x

a character vector (plain or 'charvec').

Value

'x', invisibly, after forcing materialization.

Examples

x <- charvec("a", "b")
charport_materialize(x)

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