Description Usage Arguments Details See Also Examples
Store a new value into a variable in the workspace from a file.
1 2 | ## S4 method for signature 'netWorkSpace'
nwsStoreFile(.Object, xName, fObj, n=0)
|
.Object |
a netWorkSpace class object. |
xName |
character string specifying the name of the variable to be stored |
fObj |
a |
n |
Number of bytes to write. A value of zero means to write all the data in the file. |
The nwsStoreFile
method works like nwsStore
, except that the value to
store in the netWorkSpace variable comes from a file.
If fObj
is a character string, nwsStoreFile
calls file
to obtain a file connection which is opened for the duration
of the method.
1 2 3 4 5 6 7 | ## Not run:
ws <- netWorkSpace('nws example')
nwsStore(ws, 'x', 'Hello, world\n')
nwsFindFile(ws, 'x', 'hello.txt')
nwsStoreFile(ws, 'hello', 'hello.txt')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.