| as_shared | R Documentation |
Convenience function that creates a segment, writes the data, and returns an ALTREP view.
as_shared(x, readonly = TRUE, backing = "auto", cow = NULL)
x |
An atomic vector (integer, double, logical, or raw) |
readonly |
If TRUE, prevent write access (default: TRUE) |
backing |
Backing type for the segment: "auto", "mmap", or "shm" |
cow |
Copy-on-write policy for the resulting shared vector. One of
|
An ALTREP vector backed by shared memory
x <- as_shared(1:100)
is_shared_vector(x)
y <- x[1:10]
is_shared_vector(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.