Skip to contents

Don't use this function unless you know what you're doing or just don't care about your R session. If you set the data to some unexpected value you are very likely to cause a SEGFAULT and crash the entire R session. Also, this modifies the existing object in-place, meaning that all variables pointing to this same ALTREP will be modified.

Usage

set_alt_data2(x, value)

Arguments

x

An ALTREP object to modify

value

The new value of the altrep_data2 slot

Value

x, invisibly (because x has been modified in-place you generally won't want or need to store the return value)

Examples

x <- 1:5
set_alt_data2(x, 10:15)
x
#> [1] 10 11 12 13 14