Skip to contents

Forces a deferred string into extended form

Usage

deferred_expand(x)

Arguments

x

Character vector with the deferred_string ALTREP class

Value

x, not a copy of x, invisibly

Examples

x <- as.character(1:3)
deferred_expand(x)
alt_inspect(x)
#> @5642f413bce8 16 STRSXP g0c0 [REF(4)]   <expanded string conversion>
#>   @5642f5664058 16 STRSXP g0c3 [REF(1)] (len=3, tl=0)
#>     @5642ef130eb8 09 CHARSXP g1c1 [MARK,REF(2338),gp=0x61] [ASCII] [cached] "1"
#>     @5642eef76a08 09 CHARSXP g1c1 [MARK,REF(2384),gp=0x61] [ASCII] [cached] "2"
#>     @5642ef475020 09 CHARSXP g1c1 [MARK,REF(1010),gp=0x61] [ASCII] [cached] "3"