Description Usage Arguments Details See Also Examples
Find a value of a netWorkSpace variable and write it to a file.
1 2 | ## S4 method for signature 'netWorkSpace'
nwsFindTryFile(.Object, xName, fObj)
|
.Object |
a netWorkSpace object. |
xName |
character string specifying the name of the variable to find. |
fObj |
|
The nwsFindTryFile
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, and returns TRUE
.
If no value is found, nwsFindFile
returns FALSE
.
If there is more than one value associated with xName
, the
particular value returned depends on xName
's behavior. See
nwsDeclare
for details.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
ws <- netWorkSpace('nws example')
nwsStore(ws, 'x', 'Hello, world\n')
if (nwsFindTryFile(ws, 'x', 'hello.txt')) {
cat('success\n')
} else {
cat('failure\n')
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.