if (FALSE) {
# MASTER SESSION:
}
mat = matrix(0,5,5)
registerVariables("ns_viewL", list(mat=mat))
if (FALSE) {
# WORKER SESSION:
}
viewList() # an empty list to begin with (no views retrieved)
matref = retrieveViews("ns_viewL", c("mat"))
viewList()
if (FALSE) # now equals c("ns_viewL.mat")
releaseViews("ns_viewL", c("mat"))
viewList()
if (FALSE) {
# an empty list again
# MASTER SESSION:
}
releaseVariables("ns_viewL", c("mat"))
Run the code above in your browser using DataLab