Learn R Programming

nws (version 1.6.3)

nwsFindFile: netWorkSpace Class Method

Description

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

Usage

## S3 method for class 'netWorkSpace':
nwsFindFile(.Object, xName, fObj)

Arguments

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

Details

The nwsFindFile method blocks until a value in the variable specified by 'xName' is found. Once found, it writes the value to the file object, but the value is not removed from the variable (as in the case of nwsFetchFile).

See Also

nwsFetchFile, nwsFind

Examples

Run this code
ws <- netWorkSpace('nws example')
nwsStore(ws, 'x', 'Hello, world\n')
nwsFindFile(ws, 'x', 'hello.txt')

Run the code above in your browser using DataLab