| charport_materialize | R Documentation |
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.
charport_materialize(x)
x |
a character vector (plain or 'charvec'). |
'x', invisibly, after forcing materialization.
x <- charvec("a", "b")
charport_materialize(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.