watch.files: Check for changes and append changed textfiles

View source: R/watch.folder.r

watch.filesR Documentation

Check for changes and append changed textfiles

Description

Check for changed files and append them. Works with single or multiple files

Usage

watch.files(f, af, sleep.time = 5, skipLines = 0)

Arguments

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

Details

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.

Value

a message is printed if a file is appended. Nothing gets returned.

Author(s)

Simon Frey


freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.