shareData/getData/clearData | R Documentation |
Experimental functions that enable the user to share a R object between 2 R sessions.
shareData(data, map_name, verbose=FALSE)
getData(map_name, verbose=FALSE)
clearData(x, verbose=FALSE)
data |
A R object like a vector or a |
map_name |
A character. A name for the memory map location where to store the data. |
x |
An external pointer like the one returned by function |
verbose |
A logical value |
shareData
returns a external pointer.
getData
returns an R object stored in the memory location map_name
.
clearData
returns TRUE
or FALSE
depending on whether the data have been cleared in memory.
Morgan Jacob
# In R session 1: share data in memory
# > x = shareData(mtcars,"share1")
#
# In R session 2: get data from session 1
# > getData("share1")
#
# In R session 1: clear data in memory
# > clearData(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.