| shared_name | R Documentation |
Extract the shared memory name from a shared object. This name can be
passed to map_shared() to open the same region in another process.
shared_name(x)
x |
a shared object as returned by |
A character string identifying the shared object, or NULL if
x is not a shared object. For a sub-list or element extracted from a
shared list, the string carries a bracketed 1-based index path (e.g.
"/mori_abc_1[2,3]"). map_shared() accepts both forms; the
path-qualified form returns the addressed sub-object directly. The
underlying shared memory region name is the prefix before [ and is
recoverable via sub("\\[.*$", "", shared_name(x)).
map_shared() to open a shared region by name.
x <- share(1:100)
shared_name(x)
# A sub-object extracted from a shared list carries a bracketed index path:
lst <- share(list(a = 1:3, b = letters))
shared_name(lst[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.