Opens a shared memory buffer that was created in another process. Used by workers to attach to the parent's output buffer.
Usage
buffer_open(path, type, dim, backing = c("mmap", "shm"), readonly = FALSE)Examples
# \donttest{
buf <- buffer("double", dim = 10)
path <- buffer_path(buf)
buf2 <- buffer_open(path, type = "double", dim = 10, backing = "mmap")
#> Error in segment_open(path, backing = backing, readonly = readonly): Failed to open shared memory segment
buffer_close(buf2, unlink = FALSE)
#> Error: object 'buf2' not found
buffer_close(buf)
# }