netWorkSpace-class: NetWorkSpaces Objects

Description Objects from the Class Slots Methods Examples

Description

NetWorkSpaces provides a framework to coordinate R programs. NetWorkSpaces objects represent a generalized workspace or environment. Two or more R programs communicate data by storing it in and retrieving it from the NetWorkSpace object.

Objects from the Class

Objects can be created by calls of the form
netWorkSpace(wsName, serverHost, port, useUse, serverWrap, ...)
or
new("netWorkSpace", wsName, serverHost, port, useUse, serverWrap, ...).

wsName

name of the netWorkSpace to be created.

serverHost

host name of the server this netWorkSpace will be connected to. By default, local machine is used.

port

port number of the server this netWorkSpace will be connected to. Default port number is 8765.

useUse

a logical value indicating whether ownership will be claimed for this netWorkSpace. By default, useUse=FALSE, which means ownership will be claimed.

serverWrap

a netWorkSpaces server object. Reuse an existing server connection, instead of creating a new server connection.

Slots

cookieProtocol

Currently not used.

server

Object of class "nwsServer" representation of the server that this netWorkSpace connects to.

wsName

Object of class "character" representation of this netWorkSpace's name.

Methods

initialize

signature(.Object = "netWorkSpace"): netWorkSpace class constructor.

nwsFetch

signature(.Object = "netWorkSpace"): fetch a value of a workspace variable.

nwsFetchTry

signature(.Object = "netWorkSpace"): try to fetch a value of a workspace variable.

nwsFind

signature(.Object = "netWorkSpace"): find a value of a workspace variable.

nwsFindTry

signature(.Object = "netWorkSpace"): try to find a value of a workspace variable.

nwsStore

signature(.Object = "netWorkSpace"): store a value into a workspace variable.

nwsFetchFile

signature(.Object = "netWorkSpace"): fetch a value of a workspace variable and write it to a file.

nwsFetchTryFile

signature(.Object = "netWorkSpace"): try to fetch a value of a workspace variable and write it to a file.

nwsFindFile

signature(.Object = "netWorkSpace"): find a value of a workspace variable and write it to a file.

nwsFindTryFile

signature(.Object = "netWorkSpace"): try to find a value of a workspace variable and write it to a file.

nwsStoreFile

signature(.Object = "netWorkSpace"): store data from a file into a workspace variable.

nwsIFetch

signature(.Object = "netWorkSpace"): create a function that acts as a destructive iterator over the values of the specified variable.

nwsIFetchTry

signature(.Object = "netWorkSpace"): create a function that acts as a destructive iterator over the values of the specified variable.

nwsIFind

signature(.Object = "netWorkSpace"): create a function that acts as a non-destructive iterator over the values of the specified variable.

nwsIFindTry

signature(.Object = "netWorkSpace"): create a function that acts as a non-destructive iterator over the values of the specified variable.

nwsClose

signature(.Object = "netWorkSpace"): close the connection to the NWS server.

nwsDeclare

signature(.Object = "netWorkSpace"): declare the mode of a workspace variable.

nwsDeleteVar

signature(.Object = "netWorkSpace"): delete a variable from a workspace.

nwsListVars

signature(.Object = "netWorkSpace"): list all variables in a workspace.

ServerObject

signature(.Object = "netWorkSpace"): return the associated NwsServer object.

nwsVariable

signature(.Object = "netWorkSpace"): create an Active Binding for a NetWorkSpace Variable

nwsWsName

signature(.Object = "netWorkSpace"): return the name of the workspace.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# To create a new workspace with the name "my space" use:
ws = netWorkSpace('my space')

# To create a new workspace called "my space2" on nws server 
# running on port 8245 on machine zeus:
ws2 = netWorkSpace(wsName='my space2', serverHost='zeus', port=8245)

## End(Not run)

nws documentation built on May 2, 2019, 8:51 a.m.