nwsFindFile-methods: Find a Stored Value and Write It to a File

Description Usage Arguments Details See Also Examples

Description

Find a value of a workspace variable and write it to a file.

Usage

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

Arguments

.Object

a netWorkSpace object.

xName

character string specifying the name of the variable to find.

fObj

file object or character string specifying the file to write data to.

Details

The nwsFindFile method looks in the shared netWorkSpace .Object for a value bound to xName; if it finds such a value, nwsFind writes it to the specified file but does not remove it from the variable. If no value is found, nwsFindFile 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

nwsFetchFile, nwsFind

Examples

1
2
3
4
5
6
## Not run: 
ws <- netWorkSpace('nws example')
nwsStore(ws, 'x', 'Hello, world\n')
nwsFindFile(ws, 'x', 'hello.txt')

## End(Not run)

nws documentation built on May 29, 2017, 11 p.m.

Search within the nws package
Search all R packages, documentation and source code