Description Usage Arguments Details Note Author(s) Examples
Add object to the tape.
1 2 | rtapeAdd(fName, what, skipNULLs=FALSE, fileFormat=guessFileFormat(fName),
safe=FALSE, retryTime=0.1)
|
fName |
Name of the tape file. |
what |
Object to be stored. |
skipNULLs |
If true and |
fileFormat |
File format; should be left default. See |
safe |
If |
retryTime |
If |
This function serializes and appends a given object on the end of the tape file. If the tape file does not exists, it is created.
Remember to use the same fileFormat
value to all writes to a certain tape (or use default format guesser to guarantee this); if not, the tape will become unreadable. For the same reason, don't try to put custom headers/footers or append other data inside tape stream.
This function is thread/process safe only if you use safe
mode. However, in this case it may jam on a broken dirlock (for instance when the locking R process crashed during write); you may fix this problem manually by removing the locking dir. Its name is always .rtape_<tape file name>_lock
. Waiting in retry mode is performed via Sys.sleep
, so it is not a busy wait.
Miron B. Kursa M.Kursa@icm.edu.pl
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.