| shared_diagnostics | R Documentation |
Get diagnostics for a shared vector
shared_diagnostics(x)
x |
A shard ALTREP vector |
A list with diagnostic information:
Number of times DATAPTR was accessed
Number of times vector was copied to standard R vector
Number of elements
Byte offset into underlying segment
Whether write access is prevented
R type of the vector
seg <- segment_create(400)
segment_write(seg, 1:100, offset = 0)
x <- shared_vector(seg, "integer", length = 100)
sum(x)
shared_diagnostics(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.