watch.files | R Documentation |
Check for changed files and append them. Works with single or multiple files
watch.files(f, af, sleep.time = 5, skipLines = 0)
f |
character or character vector of files to be checked |
af |
character or character vector of files to be appended |
sleep.time |
numeric. time in [s] between checks of files exists |
skipLines |
numeric. Lines to be skipped for reading the files f |
Checks for the existance of files. If f exists it is appended to af, and the system waits as long as f is deleted and created again. Designed for the use with Provis stand alone.
Note that the function needs to be killed using esc. It doesn't exit on it own.
a message is printed if a file is appended. Nothing gets returned.
Simon Frey
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.