| map_shared | R Documentation |
Open a shared memory region identified by a name string and return an ALTREP-backed R object that reads directly from shared memory.
map_shared(name)
name |
a character string as returned by |
The R object stored at the named region (or sub-object at the
given path), or NULL if name is not a valid shared memory name
(wrong type, length, NA, missing or malformed prefix, or malformed
bracketed path). If name parses as valid but the region is absent or
corrupted — or the path doesn't address a valid sub-object — an error
is raised.
share() to create a shared object, shared_name() to extract
the shared memory name.
x <- share(1:100)
nm <- shared_name(x)
map_shared(nm)
# A bracketed index path opens the addressed sub-object directly:
lst <- share(list(a = 1:3, b = letters))
map_shared(shared_name(lst[[2]]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.