powered by
Coerce a Shared Memory Buffer to Array
# S3 method for shard_buffer as.array(x, ...)
An array with the buffer contents and the buffer's dimensions, or a plain vector for 1-D buffers.
A shard_buffer object.
shard_buffer
Ignored.
# \donttest{ buf <- buffer("double", dim = c(2, 3, 4)) as.array(buf) buffer_close(buf) # }
Run the code above in your browser using DataLab