nwsFind-methods: Find a Stored Value

Description Usage Arguments Details See Also Examples

Description

Find a value associated with a variable in a shared netWorkSpace.

Usage

1
2
## S4 method for signature 'netWorkSpace'
nwsFind(.Object, xName)

Arguments

.Object

a netWorkSpace class object.

xName

character string specifying the name of the variable to find.

Details

The nwsFind method looks in the shared netWorkSpace .Object for a value bound to xName; if it finds such a value, nwsFind returns it but does not remove it. If no value is found, nwsFind blocks until a value for xName becomes available. If there is more than one value associated with xName, the particular value returned depends on xName's behavior. See nwsDeclare for details.

See Also

nwsDeclare, nwsFetch

Examples

1
2
3
4
5
6
## Not run: 
ws <- netWorkSpace('nws example')
nwsStore(ws, 'x', 1)
x <- nwsFind(ws, 'x')

## End(Not run)

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