nwsFindFile {nws} | R Documentation |
Find a value of a workspace variable and write it to a file.
## S4 method for signature 'netWorkSpace': nwsFindFile(.Object, xName, fObj)
.Object |
a netWorkSpace object |
xName |
name of the variable to find |
fObj |
File to write data to |
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
).
## Not run: ws <- netWorkSpace('nws example') nwsStore(ws, 'x', 'Hello, world\n') nwsFindFile(ws, 'x', 'hello.txt') ## End(Not run)