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 <- share(rnorm(100))
is_shared(x)
#> [1] TRUE
is_shared(rnorm(100))
#> [1] FALSE