shareData/getData/clearData {kit} | R Documentation |
Share Data between R Sessions
Description
Experimental functions that enable the user to share a R object between 2 R sessions.
Usage
shareData(data, map_name, verbose=FALSE)
getData(map_name, verbose=FALSE)
clearData(x, verbose=FALSE)
Arguments
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 |
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.
Author(s)
Morgan Jacob
Examples
# 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)
[Package kit version 0.0.18 Index]