nwsFetchFile {nws}R Documentation

netWorkSpace Class Method

Description

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

Usage

## S4 method for signature 'netWorkSpace':
nwsFetchFile(.Object, xName, fObj)

Arguments

.Object a netWorkSpace object
xName name of the variable to find
fObj File to write data to

Details

The nwsFetchFile method blocks until a value in the variable specified by 'xName' is found. Once found, it writes the value to the file object, and the value is removed from the variable.

See Also

nwsFindFile, nwsFetch

Examples

## Not run: 
ws <- netWorkSpace('nws example')
nwsStore(ws, 'x', 'Hello, world\n')
nwsFetchFile(ws, 'x', 'hello.txt')
## End(Not run)

[Package nws version 1.6.3 Index]