Learn R Programming

memshare (version 1.1.0)

pageList: Function to obtain a list of the registered variables of the current session.

Description

When your current session has registered shared memory variables via registerVariables internally the variable is tracked until it is released via releaseVariables.

This function serves as a tool to check whether all variables have been free'd after usage or to see what variables are currently held by the session.

Usage

pageList()

Arguments

Value

An [1:m] list of characters of the registered p namespaces, each of them having up to k variables, m<=p*k. Each element of the list is a combination of namespace and variable name

Author

Julian Maerte

Details

The string of each element of the output list has the format environment, backslash, backslash <namespace name>.<variable name>. Default is lokal environment.

See Also

viewList, registerVariables, releaseVariables

Examples

Run this code
  pageList()
  if (FALSE) {
  # = list()
  }
  mat = matrix(0,5,5)
  registerVariables("ns_pageL", list(mat=mat))
  pageList()
  if (FALSE) {
  # = list("mat")
  }
  releaseVariables("ns_pageL", c("mat"))
  pageList()
  if (FALSE) {
  # = list()
  }

Run the code above in your browser using DataLab