Skip to contents

Returns TRUE if x is an ALTREP object backed by shared memory (created by share() or map_shared()), FALSE otherwise.

Usage

is_shared(x)

Arguments

x

an R object.

Value

TRUE or FALSE.

Examples

x <- 1:100
y <- share(x)
is_shared(y)
#> [1] TRUE
is_shared(x)
#> [1] FALSE